1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00
freebsd-ports/games/tinymux/Makefile
Rusmir Dusko 107e0e0189 - Update to 2.10.1.12
- Remove FTP master site
- Remove leading article from COMMENT
- Add license(s) (GPLv3)
- Remove DEPRECATED, EXPIRATION_DATE
- USES gmake instead of USE_GMAKE, remove gettext
- Add libmux.so, strip library and USE_LDCONFIG=yes
- Support STAGEDIR and add OPTIONS_SUB
- Simplify DOCS installation handling
- Add FIRANMUX MEMORY_BASED REALITY_LVLS SELFCHECK SSL WOD_REALMS Options
- Add ASYNCHRONOUS_SQL SSL REALITY_LVLS WOD_REALMS to default Options
- Add OPTIONS_RADIO=MYSQL and ASYNCHRONOUS_SQL INLINE_SQL
- Add tinymux pkg-deinstall pkg-message
- Add IGNORE when is used FIRANMUX with WOD_REALMS or REALITY_LVLS
- Simplify REINPLACE and install installation handling, use %%DATADIR%%
  instead of %%DATADIR%%/game/netmux
- Recreate pkg-plist with make makeplist and proper use configuration
  handling
2014-03-29 15:30:52 +00:00

118 lines
3.2 KiB
Makefile

# Created by: cjohnson
# $FreeBSD$
PORTNAME= tinymux
PORTVERSION= 2.10.1.${PATCHLEVEL}
CATEGORIES= games net
MASTER_SITES= GOOGLE_CODE
DISTNAME= mux-${PORTVERSION}.unix
MAINTAINER= ports@FreeBSD.org
COMMENT= Multi-Player FreeForm adventure Program
LICENSE= GPLv3
WRKSRC= ${WRKDIR}/mux2.10/src
USES= gmake
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
PATCHLEVEL= 12
PORTDOCS= *
DOCSRCDIR1= ${WRKSRC}/..
DOC_FILES1= ATTACK CHANGES MODULES NOTES README REALITY REALITY.SETUP SGP \
SQL SSL
DOCSRCDIR2= ${WRKSRC}/../docs
DOCSDIR2= ${DOCSDIR}/docs
DOC_FILES2= *
OPTIONS_DEFINE= DOCS FIRANMUX MEMORY_BASED REALITY_LVLS SELFCHECK SSL WOD_REALMS
OPTIONS_DEFAULT= ASYNCHRONOUS_SQL SSL REALITY_LVLS WOD_REALMS
OPTIONS_SUB= yes
OPTIONS_RADIO= MYSQL
OPTIONS_RADIO_MYSQL= ASYNCHRONOUS_SQL INLINE_SQL
ASYNCHRONOUS_SQL_DESC= MySQL asynchronous support is unique to TinyMUX
FIRANMUX_DESC= Firan MUX via Firan's database (need MEMORY_BASED)
INLINE_SQL_DESC= MySQL support compatible with PennMUSH, TinyMUSH 3.x
MEMORY_BASED_DESC= Memory Based Database support
REALITY_LVLS_DESC= Reality Levels support
SELFCHECK_DESC= Enable expensive self-checking
WOD_REALMS_DESC= World of Darkness Realms support
ASYNCHRONOUS_SQL_CONFIGURE_ENABLE= stubslave
FIRANMUX_CONFIGURE_ENABLE= firanmux
INLINE_SQL_CONFIGURE_ENABLE= inlinesql
MEMORY_BASED_CONFIGURE_ENABLE= memorybased
REALITY_LVLS_CONFIGURE_ENABLE= realitylvls
SELFCHECK_CONFIGURE_ENABLE= selfcheck
SSL_CONFIGURE_ENABLE= ssl
WOD_REALMS_CONFIGURE_ENABLE= wodrealms
SUB_FILES= ${PORTNAME} pkg-deinstall pkg-message
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MASYNCHRONOUS_SQL} || ${PORT_OPTIONS:MINLINE_SQL}
USE_MYSQL= yes
CONFIGURE_ARGS+= --with-mysql-include=${LOCALBASE}/include/mysql \
--with-mysql-libs=${LOCALBASE}/lib/mysql
.endif
.if ${PORT_OPTIONS:MFIRANMUX}
.if ${PORT_OPTIONS:MREALITY_LVLS} || ${PORT_OPTIONS:MWOD_REALMS}
IGNORE= FIRANMUX is incompatible with both WOD_REALMS and REALITY_LVLS
.endif
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|@LIBS@|@LDFLAGS@ @LIBS@|; \
s|^OPTIM =.*|OPTIM = @CPPFLAGS@|' ${WRKSRC}/Makefile.in
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
.for file in netmux slave
${INSTALL_PROGRAM} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/sbin/
.endfor
${LN} -sf ${PREFIX}/sbin/netmux ${STAGEDIR}${PREFIX}/bin/dbconvert
${INSTALL_DATA} ${WRKSRC}/libmux.so ${STAGEDIR}${PREFIX}/lib/
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmux.so
@${MKDIR} ${STAGEDIR}${ETCDIR}
.for file in alias.conf compat.conf mux.config netmux.conf
${INSTALL_DATA} ${WRKSRC}/../game/${file} \
${STAGEDIR}${ETCDIR}/${file}.sample
.endfor
.if ${PORT_OPTIONS:MSSL}
${INSTALL_DATA} ${WRKSRC}/../game/muxssl.conf \
${STAGEDIR}${ETCDIR}/muxssl.conf.sample
.endif
.for d in data text
@(cd ${WRKSRC}/../game && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
.endfor
@${CHMOD} 775 ${STAGEDIR}${DATADIR}/data
.for file in Backup Startmux _backupflat.sh
${INSTALL_SCRIPT} ${WRKSRC}/../game/${file} \
${STAGEDIR}${DATADIR}
.endfor
@${MKDIR} ${STAGEDIR}${DOCSDIR2}
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
.include <bsd.port.mk>