blob: fe99b1229b3a2e1dee585efd00937770f5034848 (
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
|
# New ports collection makefile for: freesynd
# Date created: 2007-05-27
# Whom: Lars Engels <lars.engels@0x20.net>
#
# $FreeBSD$
#
PORTNAME= freesynd
PORTVERSION= 0.2
PORTREVISION= 4
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= lme@FreeBSD.org
COMMENT= FreeSynd GPLed reimplementation of the classic Bullfrog game Syndicate
LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png
USE_GMAKE= yes
USE_ZIP= yes
USE_SDL= sdl mixer
WRKSRC= ${WRKDIR}/${PORTNAME}/src
SUB_FILES= freesynd.sh
post-patch:
@${REINPLACE_CMD} 's|-lpng|-lpng -L${LOCALBASE}/lib|g; \
s|g++|${CXX}|g; \
s|CXXFLAGS +=|CXXFLAGS=${CXXFLAGS} -DSYSTEM_SDL -DUSE_RWOPS|;' \
${WRKSRC}/Makefile
do-install:
${MKDIR} ${DATADIR}/data
${INSTALL_PROGRAM} ${WRKSRC}/freesynd ${DATADIR}
${INSTALL_SCRIPT} ${WRKDIR}/freesynd.sh ${PREFIX}/bin
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/*.mp3 ${DATADIR}
.for datafile in ${WRKDIR}/${PORTNAME}/data/*
${INSTALL_DATA} ${WRKDIR}/${datafile} ${DATADIR}/data
.endfor
.include <bsd.port.mk>
|