freebsd-ports/games/ldmud/Makefile

73 lines
1.9 KiB
Makefile
Raw Normal View History

# Created by: glewis@FreeBSD.org
# $FreeBSD$
PORTNAME= ldmud
PORTVERSION= 3.3.720
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= games net
MASTER_SITES= http://www.bearnip.com/ftp/mud/ \
ftp://mud.stack.nl/pub/ldmud/
MAINTAINER= johans@FreeBSD.org
COMMENT= A modern version of the LPMud game driver
2014-01-25 18:49:05 +01:00
BUILD_DEPENDS= help2man:${PORTSDIR}/misc/help2man
2013-12-29 15:37:13 +01:00
LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre
GNU_CONFIGURE= yes
USE_OPENSSL= yes
2013-09-02 17:39:17 +02:00
USES= iconv pkgconfig
CONFIGURE_ARGS+=--libdir=${DATADIR} \
--bindir=${PREFIX}/sbin \
--enable-use-pcre \
--enable-use-tls=ssl
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
ALL_TARGET= ldmud
USE_RC_SUBR= ldmud
MAKE_JOBS_UNSAFE= yes
USERS= mud
GROUPS= mud
OPTIONS_DEFINE= MYSQL PGSQL SQLITE IPV6
2012-06-16 16:51:46 +02:00
OPTIONS_DEFAULT=MYSQL PGSQL SQLITE IPV6 LPMUD
OPTIONS_SINGLE= MUDLIB
OPTIONS_SINGLE_MUDLIB= LPMUD DEMOLIB
OPTIONS_SUB= yes
2012-06-16 16:51:46 +02:00
LPMUD_DESC= Install default mudlib (LP-245)
IPV6_CONFIGURE_ENABLE= use-ipv6
MYSQL_USE= MYSQL=yes
MYSQL_CONFIGURE_ENABLE= use-mysql
PGSQL_USE= PGSQL=yes
PGSQL_CONFIGURE_ENABLE= use-pgsql
SQLITE_USE= SQLITE=yes
SQLITE_CONFIGURE_ENABLE=use-sqlite
.include <bsd.port.options.mk>
2012-06-16 16:51:46 +02:00
.if ${PORT_OPTIONS:MMYSQL}
LDFLAGS+= -L${LOCALBASE}/lib/mysql
.endif
post-install:
# # Install mudlib and other directories
2013-12-29 15:37:13 +01:00
@${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}/var/log/${PORTNAME} \
${STAGEDIR}/var/run/${PORTNAME}
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/ldmud
2012-06-28 18:12:21 +02:00
.if ${PORT_OPTIONS:MLPMUD}
cd ${WRKDIR}/${PORTNAME}-${PORTVERSION}/mud/lp-245 && ${FIND} . \
| ${CPIO} -pdmu ${STAGEDIR}${DATADIR}
.else
cd ${WRKDIR}/${PORTNAME}-${PORTVERSION}/mudlib && ${FIND} . \
| ${CPIO} -pdmu ${STAGEDIR}${DATADIR}
.endif
2012-06-28 18:12:21 +02:00
.if ${PORT_OPTIONS:MDOCS}
2013-12-29 15:37:13 +01:00
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKDIR}/${PORTNAME}-${PORTVERSION}/doc && ${FIND} . \
| ${CPIO} -pdmu ${STAGEDIR}${DOCSDIR}
2013-12-29 15:37:13 +01:00
@${RM} -f ${STAGEDIR}${DOCSDIR}/Makefile
.endif
.include <bsd.port.mk>