freebsd-ports/games/tmw/Makefile
Rong-En Fan f935a609c5 - Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
supports them.  This is determined by running ``configure --help'' in
  do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
  which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
  Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
  PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
  subdirectory detection.

PR:		ports/111470
Approved by:	portmgr
Discussed with:	stas (Mk/*), gerald (info related stuffs)
Tested by:	pointyhat exp run
2007-07-23 09:36:51 +00:00

60 lines
1.6 KiB
Makefile

# New ports collection makefile for: tmw
# Date created: 12 Oktober 2005
# Whom: Tobias Gion
#
# $FreeBSD$
#
PORTNAME= tmw
PORTVERSION= 0.0.23
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= themanaworld
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= mva@sysfault.org
COMMENT= A free open source 2D MMORPG in development
LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2 \
png.5:${PORTSDIR}/graphics/png \
curl.4:${PORTSDIR}/ftp/curl \
physfs-1.0.1:${PORTSDIR}/devel/physfs
BUILD_DEPENDS= guichan>=0.6.0:${PORTSDIR}/devel/guichan
RUN_DEPENDS= guichan>=0.6.0:${PORTSDIR}/devel/guichan
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
USE_SDL= sdl image mixer net
USE_GCC= 3.2+
USE_GETOPT_LONG=yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include `${SDL_CONFIG} --cflags` -I${X11BASE}/include ${PTHREAD_CFLAGS}" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}"
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN6= tmw.6
OPTIONS= MUSIC "Install additional music" On
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_MUSIC)
MUSICNAME= tmwmusic-0.0.20
MUSICSUBDIR= data/music
DISTFILES+= ${MUSICNAME}.tar.gz
MUSICDIR= ${WRKDIR}/${MUSICNAME}/${MUSICSUBDIR}
PLIST_SUB+= MUSICADDON=""
.else
PLIST_SUB+= MUSICADDON="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
post-install:
.if !defined(WITHOUT_MUSIC)
${MKDIR} ${DATADIR}/data/music
${FIND} -E ${MUSICDIR} -type f -iregex ".*\.ogg" \
-exec ${INSTALL_DATA} "{}" "${DATADIR}/${MUSICSUBDIR}" \;
.endif
.include <bsd.port.post.mk>