blob: 11154e2e0df8db0a5e669fd78a45ce5e4226ea3f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# 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>
|