aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2014-10-31 22:44:46 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2014-10-31 22:44:46 +0800
commit642a6e3fd58e4f264e6a6ca26ac6a7286c520dde (patch)
treef4b77ecaa8d84791330df8fd07ec37da1d895505 /games
parent62e70a97b54952a0cbf0d377e03e38b7f47f304b (diff)
downloadfreebsd-ports-gnome-642a6e3fd58e4f264e6a6ca26ac6a7286c520dde.tar.gz
freebsd-ports-gnome-642a6e3fd58e4f264e6a6ca26ac6a7286c520dde.tar.zst
freebsd-ports-gnome-642a6e3fd58e4f264e6a6ca26ac6a7286c520dde.zip
- Simplify PORTNAME handling
- Pass maintainership to games@ - Add NO_ARCH - Simplify installation and plist handling
Diffstat (limited to 'games')
-rw-r--r--games/scourge-data/Makefile29
1 files changed, 9 insertions, 20 deletions
diff --git a/games/scourge-data/Makefile b/games/scourge-data/Makefile
index a86fe96a96fc..70ecaf66ba48 100644
--- a/games/scourge-data/Makefile
+++ b/games/scourge-data/Makefile
@@ -1,35 +1,24 @@
# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
# $FreeBSD$
-PORTNAME= data
+PORTNAME= scourge-data
PORTVERSION= 0.21.1
CATEGORIES= games
MASTER_SITES= SF/scourge/scourge/${PORTVERSION}
-PKGNAMEPREFIX= scourge-
-DISTNAME= ${PKGNAMEPREFIX}${PORTVERSION}${PORTNAME:S/^/./}
-DIST_SUBDIR= ${PKGNAMEPREFIX:S/-//}
+DISTNAME= scourge-${PORTVERSION}.data
+DIST_SUBDIR= scourge
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= games@FreeBSD.org
COMMENT= S.C.O.U.R.G.E data files
NO_BUILD= yes
+NO_ARCH= *
-DATADIR= share/${PKGNAMEPREFIX:S/-//}
-PLIST= ${WRKDIR}/pkg-plist
-WRKSRC= ${WRKDIR}/${PKGNAMEPREFIX:S/-/_/}${PORTNAME}
-
-pre-install:
- @${RM} -f ${PLIST}
- @cd ${WRKSRC} && \
- ${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \
- ${FIND} * -type d | ${SORT} -r | ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST}
- @${ECHO_CMD} "@dirrm %%DATADIR%%" >> ${PLIST}
+WRKSRC= ${WRKDIR}/scourge_data
+DATADIR= ${PREFIX}/share/scourge
+PORTDATA= *
do-install:
- @cd ${WRKSRC} && \
- ${MKDIR} ${STAGEDIR}${PREFIX}/${DATADIR} && \
- ${CP} -R * ${STAGEDIR}${PREFIX}/${DATADIR}
- @cd ${STAGEDIR}${PREFIX}/${DATADIR} && \
- ${FIND} * -type f -print0 | ${XARGS} -0 ${CHMOD} ${SHAREMODE}
+ cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>