2005-03-21 14:19:43 +01:00
|
|
|
# New ports collection makefile for: Yadex
|
2001-06-18 18:05:38 +02:00
|
|
|
# Date created: 17 June 2001
|
|
|
|
# Whom: Jordan DeLong <fracture@allusion.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= yadex
|
2005-03-21 14:19:43 +01:00
|
|
|
PORTVERSION= 1.7.0
|
2001-06-18 18:05:38 +02:00
|
|
|
CATEGORIES= games
|
2005-03-21 14:19:43 +01:00
|
|
|
MASTER_SITES= http://www.teaser.fr/~amajorel/yadex/ \
|
|
|
|
http://hjem.get2net.dk/RasII/amajorel/yadex/
|
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
2001-06-18 18:05:38 +02:00
|
|
|
|
2005-09-13 15:12:55 +02:00
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
2003-02-21 13:06:51 +01:00
|
|
|
COMMENT= A WAD-file editor, for games like Doom and Hexen
|
2001-06-18 18:05:38 +02:00
|
|
|
|
2005-03-21 14:19:43 +01:00
|
|
|
USE_X_PREFIX= yes
|
2001-06-18 18:05:38 +02:00
|
|
|
USE_GMAKE= yes
|
2006-10-31 18:28:42 +01:00
|
|
|
USE_PERL5_BUILD= yes
|
2001-06-18 18:05:38 +02:00
|
|
|
MAKEFILE= GNUmakefile
|
2005-03-21 14:19:43 +01:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV= CC="${CC}" CXX="${CXX}" PREFIX="${PREFIX}"
|
2001-06-18 18:05:38 +02:00
|
|
|
|
2005-03-21 14:19:43 +01:00
|
|
|
MAN6= yadex.6
|
|
|
|
|
|
|
|
OPTIONS= WHITE_BG "Use alternative (black-on-white) color scheme" off \
|
|
|
|
3D_RENDER "Build with a 3D preview function" off \
|
|
|
|
SEARCH "Search for a thing, linedef or sector by type" off \
|
|
|
|
EXTRA_TOOLS "Add a few extra tools to Yadex's repertoire" off \
|
|
|
|
LAPTOP_KEYS "Key bindings to make editing easier on laptops" off
|
2001-06-18 18:05:38 +02:00
|
|
|
|
2004-02-25 10:51:08 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-03-21 14:19:43 +01:00
|
|
|
PATCH_SITES= http://glbsp.sourceforge.net/%SUBDIR%/
|
|
|
|
PATCH_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
PATCH_PREFIX= ${PORTNAME:U:C/^(.).*$/\1/g}${PORTNAME:C/^(.)//}_${PORTVERSION:S/.//g}
|
|
|
|
PATCH_SUFFIX= .diff
|
|
|
|
PATCHFILES= ${PATCH_PREFIX}_Depend${PATCH_SUFFIX}
|
2005-09-14 11:32:03 +02:00
|
|
|
|
|
|
|
.if defined(WITH_3D_RENDER) || defined(WITH_SEARCH) \
|
|
|
|
|| defined(WITH_EXTRA_TOOLS) || defined(WITH_LAPTOP_KEYS)
|
2005-03-21 14:19:43 +01:00
|
|
|
. if defined(WITH_3D_RENDER)
|
|
|
|
PATCHFILES+= ${PATCH_PREFIX}_Render3D${PATCH_SUFFIX}
|
|
|
|
PLIST_SUB+= 3DRENDER=""
|
|
|
|
. else
|
|
|
|
PLIST_SUB+= 3DRENDER="@comment "
|
|
|
|
. endif
|
|
|
|
. if defined(WITH_SEARCH)
|
|
|
|
PATCHFILES+= ${PATCH_PREFIX}_Find${PATCH_SUFFIX}
|
|
|
|
. endif
|
|
|
|
. if defined(WITH_EXTRA_TOOLS)
|
|
|
|
PATCHFILES+= ${PATCH_PREFIX}_Tools${PATCH_SUFFIX}
|
|
|
|
. endif
|
|
|
|
. if defined(WITH_LAPTOP_KEYS)
|
|
|
|
PATCHFILES+= ${PATCH_PREFIX}_Keys${PATCH_SUFFIX}
|
|
|
|
. endif
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= 3DRENDER="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_WHITE_BG)
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -E 's,^#(CXXFLAGS \+= -DWHITE_BACKGROUND)$$,\1,' \
|
|
|
|
${WRKSRC}/${MAKEFILE}
|
2004-02-25 10:51:08 +01:00
|
|
|
.endif
|
|
|
|
|
2001-07-07 07:54:56 +02:00
|
|
|
post-install:
|
2005-03-21 14:19:43 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.[^6]* ${WRKSRC}/doc/README ${DOCSDIR}
|
|
|
|
.endif
|
2001-06-18 18:05:38 +02:00
|
|
|
|
2004-02-25 10:51:08 +01:00
|
|
|
.include <bsd.port.post.mk>
|