2013-03-11 01:38:26 +00:00
|
|
|
# Created by: Jordan DeLong <fracture@allusion.net>
|
2001-06-18 16:05:38 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= yadex
|
2005-03-21 13:19:43 +00:00
|
|
|
PORTVERSION= 1.7.0
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
PORTREVISION= 2
|
2001-06-18 16:05:38 +00:00
|
|
|
CATEGORIES= games
|
2013-03-13 17:37:03 +00:00
|
|
|
MASTER_SITES= http://www.teaser.fr/~amajorel/yadex/
|
2005-03-21 13:19:43 +00:00
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
2001-06-18 16:05:38 +00:00
|
|
|
|
2005-09-13 13:12:55 +00:00
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
2013-03-11 01:38:26 +00:00
|
|
|
COMMENT= WAD file editor, for games like Doom and Hexen
|
2001-06-18 16:05:38 +00:00
|
|
|
|
2012-02-28 09:56:09 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-09-02 08:56:06 +00:00
|
|
|
USES= gmake perl5
|
2012-02-28 09:56:09 +00:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV= CC="${CC}" CXX="${CXX}" PREFIX="${PREFIX}"
|
2013-09-02 08:56:06 +00:00
|
|
|
USE_PERL5= build
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
USE_XORG= x11
|
2001-06-18 16:05:38 +00:00
|
|
|
MAKEFILE= GNUmakefile
|
|
|
|
|
2005-03-21 13:19:43 +00:00
|
|
|
MAN6= yadex.6
|
|
|
|
|
2013-03-11 01:38:26 +00:00
|
|
|
OPTIONS_DEFINE= WHITE_BG 3D_RENDER SEARCH EXTRA_TOOLS LAPTOP_KEYS DOCS
|
2001-06-18 16:05:38 +00:00
|
|
|
|
2013-03-13 17:37:03 +00:00
|
|
|
WHITE_BG_DESC= Alternative (black-on-white) color scheme
|
|
|
|
3D_RENDER_DESC= Build with 3D preview function
|
|
|
|
SEARCH_DESC= Thing, linedef, or sector search by type
|
2013-03-11 01:38:26 +00:00
|
|
|
EXTRA_TOOLS_DESC= Add a few extra tools to Yadex' repertoire
|
2013-03-13 17:37:03 +00:00
|
|
|
LAPTOP_KEYS_DESC= Key bindings for easier editing on laptops
|
2013-03-11 01:38:26 +00:00
|
|
|
|
2013-09-20 17:36:33 +00:00
|
|
|
NO_STAGE= yes
|
2013-03-11 01:38:26 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2004-02-25 09:51:08 +00:00
|
|
|
|
2005-03-21 13:19:43 +00:00
|
|
|
PATCH_SITES= http://glbsp.sourceforge.net/%SUBDIR%/
|
|
|
|
PATCH_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
PATCH_DIST_STRIP= -p1
|
2013-03-13 17:37:03 +00:00
|
|
|
PATCH_PREFIX= Yadex_${PORTVERSION:S/.//g}
|
2005-03-21 13:19:43 +00:00
|
|
|
PATCH_SUFFIX= .diff
|
|
|
|
PATCHFILES= ${PATCH_PREFIX}_Depend${PATCH_SUFFIX}
|
2005-09-14 09:32:03 +00:00
|
|
|
|
2013-03-11 01:38:26 +00:00
|
|
|
.if ${PORT_OPTIONS:M3D_RENDER}
|
2005-03-21 13:19:43 +00:00
|
|
|
PATCHFILES+= ${PATCH_PREFIX}_Render3D${PATCH_SUFFIX}
|
|
|
|
PLIST_SUB+= 3DRENDER=""
|
2008-01-25 15:39:53 +00:00
|
|
|
.else
|
2005-03-21 13:19:43 +00:00
|
|
|
PLIST_SUB+= 3DRENDER="@comment "
|
2008-01-25 15:39:53 +00:00
|
|
|
.endif
|
2013-03-11 01:38:26 +00:00
|
|
|
.if ${PORT_OPTIONS:MSEARCH}
|
2005-03-21 13:19:43 +00:00
|
|
|
PATCHFILES+= ${PATCH_PREFIX}_Find${PATCH_SUFFIX}
|
2008-01-25 15:39:53 +00:00
|
|
|
.endif
|
2013-03-11 01:38:26 +00:00
|
|
|
.if ${PORT_OPTIONS:MEXTRA_TOOLS}
|
2005-03-21 13:19:43 +00:00
|
|
|
PATCHFILES+= ${PATCH_PREFIX}_Tools${PATCH_SUFFIX}
|
2008-01-25 15:39:53 +00:00
|
|
|
.endif
|
2013-03-11 01:38:26 +00:00
|
|
|
.if ${PORT_OPTIONS:MLAPTOP_KEYS}
|
2005-03-21 13:19:43 +00:00
|
|
|
PATCHFILES+= ${PATCH_PREFIX}_Keys${PATCH_SUFFIX}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2013-03-11 01:38:26 +00:00
|
|
|
.if ${PORT_OPTIONS:MWHITE_BG}
|
2005-03-21 13:19:43 +00:00
|
|
|
@${REINPLACE_CMD} -E 's,^#(CXXFLAGS \+= -DWHITE_BACKGROUND)$$,\1,' \
|
|
|
|
${WRKSRC}/${MAKEFILE}
|
2004-02-25 09:51:08 +00:00
|
|
|
.endif
|
|
|
|
|
2001-07-07 05:54:56 +00:00
|
|
|
post-install:
|
2013-03-11 01:38:26 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2005-03-21 13:19:43 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.[^6]* ${WRKSRC}/doc/README ${DOCSDIR}
|
|
|
|
.endif
|
2001-06-18 16:05:38 +00:00
|
|
|
|
2013-03-11 01:38:26 +00:00
|
|
|
.include <bsd.port.mk>
|