d4f0d0048a
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}. - Bump PORTREVISION for ports intalling files in ${X11BASE}.
60 lines
1.6 KiB
Makefile
60 lines
1.6 KiB
Makefile
# New ports collection makefile for: powermanga
|
|
# Date created: 26 Jan 2004
|
|
# Whom: Jean-Yves Lefort <jylefort@brutele.be>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= powermanga
|
|
PORTVERSION= 0.80
|
|
PORTREVISION= 2
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://linux.tlk.fr/games/Powermanga/download/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= An arcade 2D shoot-em-up
|
|
|
|
USE_XLIB= yes
|
|
USE_SDL= sdl mixer
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --program-prefix=""
|
|
|
|
MAN6= powermanga.6
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|^CXXFLAGS="-O3.*||' ${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e \
|
|
's|/usr/share/games/\(powermanga/graphics\)|${PREFIX}/share/\1|; \
|
|
s|/usr/share/games/\(powermanga\)/sound|${PREFIX}/share/\1/sounds|' \
|
|
${WRKSRC}/powermanga.6
|
|
@${REINPLACE_CMD} -e 's|(mandir)|&/man6|' \
|
|
${WRKSRC}/Makefile.in
|
|
@${REINPLACE_CMD} -e 's|\((prefix)\)/games|\1/bin|' \
|
|
${WRKSRC}/src/Makefile.in
|
|
@${REINPLACE_CMD} -e 's|games/\(powermanga\)|\1|' \
|
|
${WRKSRC}/graphics/Makefile.in \
|
|
${WRKSRC}/sounds/Makefile.in \
|
|
${WRKSRC}/src/linuxroutines.cpp
|
|
@${REINPLACE_CMD} -e 's|SDL/||' \
|
|
${WRKSRC}/src/powermanga.hpp \
|
|
${WRKSRC}/src/sdl_mixer.cpp
|
|
@${REINPLACE_CMD} -e 's|Lang=fr|Lang=en|' \
|
|
${WRKSRC}/texts/config.ini
|
|
|
|
post-install:
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
@${MKDIR} ${DATADIR}/texts
|
|
@cd ${WRKSRC}/texts && \
|
|
(for i in *.ini *.txt; do \
|
|
${INSTALL_DATA} $${i} ${DATADIR}/texts; \
|
|
done)
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} \
|
|
${WRKSRC}/AUTHORS \
|
|
${WRKSRC}/CHANGES \
|
|
${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|