1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/games/xpat2/Makefile
Vanilla I. Shu 153fe0b17a Support STAGEDIR.
PR:		ports/193038
Submitted by:	Ports Fury.
2014-08-28 03:40:51 +00:00

37 lines
833 B
Makefile

# Created by: Matthew Hunt <mph@pobox.com>
# $FreeBSD$
PORTNAME= xpat2
PORTVERSION= 1.07
DISTVERSIONSUFFIX= -src
PORTREVISION= 4
CATEGORIES= games
MASTER_SITES= SUNSITE/games/solitaires
MAINTAINER= ports@FreeBSD.org
COMMENT= X11 solitaire game with 14 variations
LICENSE= GPLv2 # (or later)
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
USES= imake
USE_XORG= xaw
CFLAGS+= -D_POSIX_SOURCE -DNO_CUSERID -D_POSIX_SAVED_IDS
DATADIR= ${PREFIX}/share/xpat
DESKTOP_ENTRIES="XPat2" "" "" "${PORTNAME}" "" ""
post-patch:
@${REINPLACE_CMD} -e \
's|\([[:blank:]]\)\($$(XPAT.*DIR)\)|\1$$(DESTDIR)\2|g ; \
s|\([[:blank:]]\)\($$(APPDEFSDIR)\)|\1$$(DESTDIR)\2|g ; \
/chown/s|^|#| ; \
s|\(xpat2.6\)x|\1|g' ${WRKSRC}/Imakefile
@${REINPLACE_CMD} -e \
's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/xpat2.man
.include <bsd.port.mk>