diff options
Diffstat (limited to 'games/xpat2/Makefile')
-rw-r--r-- | games/xpat2/Makefile | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/games/xpat2/Makefile b/games/xpat2/Makefile index af33669f5ad3..c09855ead3c4 100644 --- a/games/xpat2/Makefile +++ b/games/xpat2/Makefile @@ -3,27 +3,40 @@ PORTNAME= xpat2 PORTVERSION= 1.07 -PORTREVISION= 2 +DISTVERSIONSUFFIX= -src +PORTREVISION= 3 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SUNSITE} -MASTER_SITE_SUBDIR= games/solitaires -DISTNAME= ${PORTNAME}-${PORTVERSION}-src -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src +MASTER_SITES= SUNSITE/games/solitaires MAINTAINER= ports@FreeBSD.org COMMENT= X11 solitaire game with 14 variations +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src + USES= imake USE_XORG= xaw + +CFLAGS+= -D_POSIX_SOURCE -DNO_CUSERID -D_POSIX_SAVED_IDS + MAN6= xpat2.6 -MANCOMPRESSED= no + +DESKTOP_ENTRIES="XPat2" "" "" "${PORTNAME}" "" "" + +post-patch: + @${REINPLACE_CMD} -e \ + 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/xpat2.man post-install: - ${MV} ${PREFIX}/lib/xpat/man/man6/xpat2.6x ${PREFIX}/man/man6/xpat2.6 - ${RMDIR} ${PREFIX}/lib/xpat/man/man6 ${PREFIX}/lib/xpat/man - ${TOUCH} /var/games/xpat.log - ${CHOWN} root:games /var/games/xpat.log $(PREFIX)/bin/xpat2 - ${CHMOD} 2555 $(PREFIX)/bin/xpat2 + ${CHOWN} root:games ${PREFIX}/bin/xpat2 + ${CHMOD} 2555 ${PREFIX}/bin/xpat2 +.if !exists(/var/games/xpat.log) +.if !exists(/var/games) + ${MKDIR} /var/games + ${CHMOD} 775 /var/games +.endif + ${ECHO_CMD} -n > /var/games/xpat.log + ${CHOWN} root:games /var/games/xpat.log ${CHMOD} 664 /var/games/xpat.log +.endif .include <bsd.port.mk> |