mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
63308c40e8
- Add LICENSE info - Add DESKTOP_ENTRIES - OptionsNG PR: 174989 Submitted by: Sender Ghost <lightside at safebox.ru>
101 lines
2.3 KiB
Makefile
101 lines
2.3 KiB
Makefile
# New ports collection makefile for: sauerbraten
|
|
# Date created: 2006-02-01
|
|
# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= sauerbraten
|
|
PORTVERSION= 20130203
|
|
PORTREVISION= 0
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/2013_01_04
|
|
DISTNAME= ${PORTNAME}_2013_02_03_collect_edition_linux
|
|
|
|
MAINTAINER= acm@FreeBSD.org
|
|
COMMENT= First person shooter based on Cube
|
|
|
|
LICENSE_COMB= multi
|
|
LICENSE= MIT ZLIB
|
|
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
USE_BZIP2= yes
|
|
CONFIGURE_ENV= ACLOCAL=true AUTOCONF=true AUTOMAKE=true
|
|
CONFIGURE_WRKSRC= ${WRKSRC}/src/enet
|
|
CONFIGURE_ARGS= --enable-shared=no --enable-static=yes
|
|
BUILD_WRKSRC= ${WRKSRC}/src
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
ALL_TARGET= libenet
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
MANUAL_PACKAGE_BUILD= distfile exceeds pointyhat file size limits
|
|
|
|
PORTDATA= data packages
|
|
PORTDOCS= *
|
|
|
|
OPTIONS_MULTI= BUILD
|
|
OPTIONS_MULTI_BUILD= CLIENT DEDICATED MASTER
|
|
OPTIONS_DEFAULT= CLIENT DEDICATED
|
|
CLIENT_DESC= Build client
|
|
DEDICATED_DESC= Build dedicated server
|
|
MASTER_DESC= Build master server
|
|
|
|
SUB_FILES= sauer_client sauer_master sauer_server pkg-message
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MCLIENT}
|
|
USE_GL= yes
|
|
USE_SDL= image mixer sdl
|
|
ALL_TARGET+= client
|
|
SAUER_BIN+= client
|
|
|
|
DESKTOP_ENTRIES="Sauerbraten" "${COMMENT}" \
|
|
"${PREFIX}/share/${PORTNAME}/data/cube.png" "sauer_client" \
|
|
"Game;" false
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MDEDICATED}
|
|
ALL_TARGET+= server
|
|
SAUER_BIN+= server
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MMASTER}
|
|
ALL_TARGET+= master
|
|
SAUER_BIN+= master
|
|
.endif
|
|
|
|
post-extract:
|
|
@${FIND} ${WRKSRC} -type d -name CVS -type d -print0 | \
|
|
${XARGS} -0 ${RM} -R
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -Ee '/^#define (HAS_GETHOSTBY(NAME|ADDR)_R) 1/d' \
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
|
|
|
do-install:
|
|
.for f in ${SAUER_BIN}
|
|
${INSTALL_SCRIPT} ${WRKDIR}/sauer_${f} ${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/sauer_${f} ${PREFIX}/libexec
|
|
.endfor
|
|
.if !defined(NOPORTDATA)
|
|
${MKDIR} ${DATADIR}
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDATA}" ${DATADIR}
|
|
.endif
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${MKDIR} ${DOCSDIR}
|
|
cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
|
|
.endif
|
|
|
|
post-install:
|
|
.for f in ${SAUER_BIN}
|
|
@${ECHO_CMD} bin/sauer_${f} >> ${TMPPLIST}
|
|
@${ECHO_CMD} libexec/sauer_${f} >> ${TMPPLIST}
|
|
.endfor
|
|
@${ECHO_CMD}
|
|
@${CAT} ${PKGMESSAGE}
|
|
@${ECHO_CMD}
|
|
|
|
.include <bsd.port.mk>
|