1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00
freebsd-ports/games/starfighter/Makefile
Rusmir Dusko 79c2907143 - Update to 1.6, announce messages are here:
Project: Starfighter 1.6 Released
https://savannah.nongnu.org/forum/forum.php?forum_id=8641

- Change master site(s) from 1.5 to ${DISTVERSION}
- Change WWW
2017-01-10 15:25:23 +00:00

65 lines
1.7 KiB
Makefile

# Created by: Alejandro Pulver <alejandro@varnet.biz>
# $FreeBSD$
PORTNAME= starfighter
PORTVERSION= 1.6
CATEGORIES= games
MASTER_SITES= SAVANNAH/${PORTNAME}/${DISTVERSION} \
SF/nemysisfreebsdp/${CATEGORIES}/${PORTNAME}/:icons
DISTFILES= ${PORTNAME}-${DISTVERSION}-src${EXTRACT_SUFX} \
${PORTNAME}-icons${EXTRACT_SUFX}:icons
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= nemysis@FreeBSD.org
COMMENT= Liberate the universe from the evil company WEAPCO
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}-src
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= gmake dos2unix iconv pkgconfig
USE_SDL= image2 mixer2
DOS2UNIX_GLOB= *.txt
PORTDOCS= *
DOCSRCDIR1= ${WRKSRC}
DOC_FILES1= README.txt
DOCSRCDIR2= ${WRKSRC}/docs/
DOCSDIR2= ${DOCSDIR}/docs/
DOC_FILES2= *.png *.html
OPTIONS_DEFINE= DOCS
INSTALLS_ICONS= yes
ICON_SIZES= 16x16 32x32 48x48 64x64 72x72 96x96 128x128
post-patch:
@${REINPLACE_CMD} \
-e 's| -O2 -Wall|${CXXFLAGS}| ; \
s|mkdir -p $$(DESTDIR)$$(DOCDIR)|| ; \
s|cp $$(DOCS) $$(DESTDIR)$$(DOCDIR)|| ; \
s|/usr|${LOCALBASE}| ; \
s|$$(PREFIX)/games/|$$(PREFIX)/bin/| ; \
s|/share/games/parallelrealities/|/share/starfighter/|' \
${WRKSRC}/Makefile
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.for s in ${ICON_SIZES}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
.endfor
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR2}
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
.include <bsd.port.mk>