mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
54 lines
1.4 KiB
Makefile
54 lines
1.4 KiB
Makefile
# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
|
|
|
|
PORTNAME= mahjong
|
|
PORTVERSION= 1.16
|
|
CATEGORIES= games net
|
|
MASTER_SITES= http://mahjong.julianbradfield.org/Source/%SUBDIR%/
|
|
DISTNAME= mj-${PORTVERSION}-src
|
|
|
|
MAINTAINER= wen@FreeBSD.org
|
|
COMMENT= Networked Mah Jong program, together with a computer player
|
|
|
|
LICENSE= GPLv2+
|
|
|
|
USES= compiler:c++11-lang gmake gnome perl5 pkgconfig
|
|
USE_GNOME= gtk20
|
|
USE_PERL5= build
|
|
MAKE_ENV= CCLINK="${CC}" CDEBUGFLAGS="${CFLAGS}" PERL="${PERL}"
|
|
|
|
PLIST_FILES= bin/mj-server bin/mj-player bin/xmj \
|
|
man/man1/mj-player.1.gz man/man1/mj-server.1.gz \
|
|
man/man1/xmj.1.gz
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
's|^CC|#CC|g ; \
|
|
s|^DESTDIR|#DESTDIR|g ; \
|
|
s|^CDEBUGFLAGS|#CDEBUGFLAGS|g ; \
|
|
s|^MAKE|#MAKE|g ; \
|
|
s|^PERL|#PERL|g ; \
|
|
s|^INST|#INST|g ; \
|
|
s|make |$$(MAKE) |g' ${WRKSRC}/Makefile.in
|
|
@${REINPLACE_CMD} -e \
|
|
's|"gcc"|"${CC}"| ; \
|
|
s|^gcc |${CC} |' ${WRKSRC}/makedep
|
|
@${REINPLACE_CMD} -e \
|
|
's|SOL_TCP|IPPROTO_TCP|' ${WRKSRC}/sysdep.c
|
|
|
|
do-configure:
|
|
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \
|
|
Makefile.in Makefile)
|
|
|
|
do-install:
|
|
.for i in mj-player mj-server xmj
|
|
(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${i} \
|
|
${STAGEDIR}${PREFIX}/bin/${i})
|
|
.endfor
|
|
(cd ${WRKSRC} && ${INSTALL_MAN} xmj.man \
|
|
${STAGEDIR}${MANPREFIX}/man/man1/xmj.1)
|
|
.for i in mj-player.1 mj-server.1
|
|
${LN} -sf xmj.1 ${STAGEDIR}${MANPREFIX}/man/man1/${i}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|