mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
bc53620c8e
- Stage support PR: 187047 Submitted by: Ports Fury
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
# Created by: Leland Wang <llwang@infor.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= 54321
|
|
PORTVERSION= 1.0.2001.11.16
|
|
PORTREVISION= 12
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://old.nklein.com/products/54321/%SUBDIR%/ \
|
|
http://www.sourcefiles.org/Games/Puzzle/
|
|
MASTER_SITE_SUBDIR= ${PORTVERSION}
|
|
DISTNAME= ${PORTNAME}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Five games in four-, three-, or two-dimensions for one player
|
|
|
|
LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png
|
|
|
|
USES= gmake
|
|
USE_SDL= image sdl
|
|
MAKEFILE= GNUmakefile
|
|
|
|
post-extract:
|
|
@${MKDIR} ${WRKSRC}/archs/${OPSYS}
|
|
@${CP} ${FILESDIR}/variables.GNU ${WRKSRC}/archs/${OPSYS}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
's|ARCH|OPSYS| ; \
|
|
s|:= -O|+=|' ${WRKSRC}/GNUmakefile
|
|
@${REINPLACE_CMD} -e \
|
|
's|SDL_main|main| ; \
|
|
s|../../data/|${DATADIR}/data/|' ${WRKSRC}/code/*.cpp
|
|
|
|
do-install:
|
|
(cd ${WRKSRC}/Release/bin/${OPSYS} && ${INSTALL_PROGRAM} 54321 \
|
|
${STAGEDIR}${PREFIX}/bin)
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/data
|
|
(cd ${WRKSRC}/Release/data && ${INSTALL_DATA} * \
|
|
${STAGEDIR}${DATADIR}/data)
|
|
|
|
.include <bsd.port.mk>
|