diff options
author | Jean-Yves Lefort <jylefort@FreeBSD.org> | 2005-10-17 10:55:32 +0000 |
---|---|---|
committer | Jean-Yves Lefort <jylefort@FreeBSD.org> | 2005-10-17 10:55:32 +0000 |
commit | 155cca3695b0a31a28b028ec8f627a9659a58af0 (patch) | |
tree | 70db78de26cb117d92e2cf19da79592e2eafe2aa /games/boswars/Makefile | |
parent | d215c6bf444dc9eb3bbc70e256b02d52d5f38c19 (diff) | |
download | ports-155cca3695b0a31a28b028ec8f627a9659a58af0.tar.gz ports-155cca3695b0a31a28b028ec8f627a9659a58af0.zip |
Notes
Diffstat (limited to 'games/boswars/Makefile')
-rw-r--r-- | games/boswars/Makefile | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/games/boswars/Makefile b/games/boswars/Makefile new file mode 100644 index 000000000000..e57f3ef7dffb --- /dev/null +++ b/games/boswars/Makefile @@ -0,0 +1,45 @@ +# New ports collection makefile for: bos +# Date created: 14 Oct 2005 +# Whom: Alejandro Pulver <alejandro@varnet.biz> +# +# $FreeBSD$ +# + +PORTNAME= bos +PORTVERSION= 1.1 +CATEGORIES= games +MASTER_SITES= http://bos.seul.org/files/ +DISTNAME= ${PORTNAME}_${PORTVERSION:S/./_/g} + +MAINTAINER= alejandro@varnet.biz +COMMENT= A real-time strategy game + +RUN_DEPENDS= stratagus:${PORTSDIR}/games/stratagus + +PLIST= ${WRKDIR}/pkg-plist + +PLIST_FILES= bin/bos +PLIST_DIRS= %%DATADIR%% + +do-build: + @(${ECHO_CMD} "#!${SH}"; \ + ${ECHO_CMD} 'exec ${LOCALBASE}/bin/stratagus -d ${DATADIR} "$$@"') \ + > ${WRKDIR}/${PORTNAME} + +pre-install: + @${RM} -f ${PLIST} + @cd ${WRKSRC}/data && \ + ${FIND} * -type d -empty | ${SORT} | ${SED} -e \ + 's|^|@exec mkdir -p %D/%%DATADIR%%/|' >> ${PLIST} && \ + ${FIND} * -type f | ${SORT} | ${SED} -e \ + 's|^|%%DATADIR%%/|' >> ${PLIST} && \ + ${FIND} * -type d | ${SORT} -r | ${SED} -e \ + 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST} + +do-install: + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin + cd ${WRKSRC}/data && \ + ${FIND} * -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \ + ${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \; + +.include <bsd.port.mk> |