blob: de2786406d5c0261d8113f8d5b513d75d8080df4 (
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
37
38
39
40
41
42
43
44
45
46
|
# Whom: Andrey Zakhvatov
# $FreeBSD$
PORTNAME= xmastermind
PORTVERSION= 0.1
PORTREVISION= 5
CATEGORIES= games
MASTER_SITES= SUNSITE/games/strategy
MAINTAINER= ports@FreeBSD.org
COMMENT= Mastermind game for X Window System
LICENSE= GPLv2
LIB_DEPENDS= forms:${PORTSDIR}/x11-toolkits/xforms
USE_XORG= x11 xpm
MAKE_ENV= GRAPHLIBS="${LDFLAGS}"
MAKE_JOBS_SAFE= yes
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lforms -lXpm -lX11
PORTDOCS= BUGS README.for.developers README.for.users
PLIST_FILES= bin/${PORTNAME}
post-patch:
@${REINPLACE_CMD} -e \
'/^CC/s| =| ?=| ; \
/^CFLAGS/s| =| ?=| ; \
/^GRAPHLIBS/s| =| ?=|' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e \
's|malloc.h|stdlib.h|' ${WRKSRC}/list.h
.include <bsd.port.options.mk>
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} ${PREFIX}/bin)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
.endfor
.endif
.include <bsd.port.mk>
|