1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/games/mangos/Makefile
Jeremy Messenger 789d75c728 -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.
-Update libtool and libltdl to 2.2.6a.
-Remove devel/libtool15 and devel/libltdl15.
-Fix ports build with libtool22/libltdl22.
-Bump ports that depend on libltdl22 due to shared library version change.
-Explain what to do update in the UPDATING.

It has been tested with GNOME2, XFCE4, KDE3, KDE4 and other many wm/desktop
and applications in the runtime.

With help:	marcus and kwm
Pointyhat-exp:	a few times by pav
Tested by:	pgollucci, "Romain Tartière" <romain@blogreen.org>, and
		a few MarcusCom CVS users. Also, I might have missed a few.
Repocopy by:	marcus
Approved by:	portmgr
2009-08-02 19:36:34 +00:00

101 lines
3.0 KiB
Makefile

# New ports collection makefile for: mangos
# Date created: 15 March 2007
# Whom: Artemiy Kropachev <neon_cyrex@mail.ru>
#
# $FreeBSD$
#
PORTNAME= mangos
PORTVERSION= 5101
CATEGORIES= games
MASTER_SITES= CENKES http://mangos-port.by.ru/ \
http://wow.omsktele.com/src/ \
http://belnetwork.org/mangos/
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
SCRIPTDEV2REV= 245
MAINTAINER= neon_cyrex@mail.ru
COMMENT= Free dedicated-server for World of Warcraft
OPTIONS= SCRIPTDEV2 "ScriptDev2" on \
CLI "Command Line Itrerface support" off \
RA "Remote Administration support" off \
DBC "Install DBC files" on
USE_AUTOTOOLS= aclocal:19 libtoolize autoconf:262 autoheader:262 automake:19 libtool:22
ACLOCAL_ARGS= -I ${LOCALBASE}/share/aclocal
AUTOMAKE_ARGS= -a
USE_MYSQL= yes
CFLAGS+= -O0
USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --prefix=${PREFIX} --sysconfdir=${PREFIX}/etc --datadir=${PREFIX}/share
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
.include <bsd.port.pre.mk>
.ifdef WITH_SCRIPTDEV2
DISTFILES+= ScriptDev2-${SCRIPTDEV2REV}.tar.gz
EXTRA_PATCHES= ${FILESDIR}/ScriptDev2.patch
PLIST_SUB+= SD2=""
.else
PLIST_SUB+= SD2="@comment "
.endif
.ifdef WITH_DBC
PLIST_SUB+= DBC=""
DISTFILES+= mangos-dbc2_3_0.tar.gz
.else
PLIST_SUB+= DBC="@comment "
.endif
.ifdef WITH_CLI
CONFIGURE_ARGS+=--enable-cli
.endif
.ifdef WITH_RA
CONFIGURE_ARGS+=--enable-ra
.endif
post-extract:
.ifdef WITH_SCRIPTDEV2
@${MV} ${WRKDIR}/ScriptDev2-${SCRIPTDEV2REV} ${WRKSRC}/src/bindings/ScriptDev2/
.endif
@${LN} -s ${LTMAIN} ${WRKSRC}/
@${RM} ${WRKSRC}/sql/updates/Makefile.am
@cd ${WRKSRC}/sql/ && ${TAR} -czf updates.tar.gz updates
post-patch:
@${REINPLACE_CMD} -e 's|@MANGOSD_DATA@|${PREFIX}/share/mangos|g' \
${WRKSRC}/src/mangosd/mangosd.conf.in
@${REINPLACE_CMD} -e '/^sysconf_DATA/,/conf/d' \
${WRKSRC}/src/mangosd/Makefile.am ${WRKSRC}/src/realmd/Makefile.am
.ifdef WITH_SCRIPTDEV2
@cd ${WRKSRC}/src/bindings/ScriptDev2/sql/Updates/&&\
${REINPLACE_CMD} -e '/pkgdata_DATA/,$$d' Makefile.am\
&&${ECHO_CMD} "pkgdata_DATA=`echo *.sql`">>Makefile.am
.endif
run-autotools-automake:
@(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOMAKE} ${AUTOMAKE_ARGS})
.ifdef WITH_SCRIPTDEV2
@(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOMAKE} \
${AUTOMAKE_ARGS} src/bindings/ScriptDev2/Makefile)
.endif
.ifdef WITH_SCRIPTDEV2
post-build:
@(cd ${BUILD_WRKSRC}/src/bindings/ScriptDev2; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
.endif
post-install:
@for i in mangosd realmd;do cd ${PREFIX}/etc/&&\
${INSTALL_DATA} ${WRKSRC}/src/$$i/$$i.conf $$i.conf.sample&&\
${CP} -np $$i.conf.sample $$i.conf;done
.ifdef WITH_SCRIPTDEV2
@(cd ${INSTALL_WRKSRC}/src/bindings/ScriptDev2 && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
.endif
.ifdef WITH_DBC
@${CP} -Rf ${WRKDIR}/dbc ${PREFIX}/share/mangos/dbc
.endif
.include <bsd.port.post.mk>