2001-06-01 20:00:00 +02:00
|
|
|
# New ports collection makefile for: vertex
|
|
|
|
# Date created: 1 June 2001
|
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= vertex
|
2003-10-24 22:08:06 +02:00
|
|
|
PORTVERSION= 0.1.15
|
2010-03-28 08:47:48 +02:00
|
|
|
PORTREVISION= 9
|
2001-06-01 20:00:00 +02:00
|
|
|
CATEGORIES= graphics
|
2006-05-24 13:02:28 +02:00
|
|
|
MASTER_SITES= http://wolfpack.twu.net/users/wolfpack/
|
2001-06-01 20:00:00 +02:00
|
|
|
|
2003-07-29 11:12:37 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2005-02-25 18:17:21 +01:00
|
|
|
COMMENT= A 3D modeller for generating efficient game models
|
2001-06-01 20:00:00 +02:00
|
|
|
|
2003-10-24 22:08:06 +02:00
|
|
|
LIB_DEPENDS= gtkgl.5:${PORTSDIR}/x11-toolkits/gtkglarea
|
2001-10-05 19:46:18 +02:00
|
|
|
|
2001-06-01 20:00:00 +02:00
|
|
|
USE_BZIP2= yes
|
2005-02-25 18:17:21 +01:00
|
|
|
USE_GL= yes
|
2002-09-03 04:46:49 +02:00
|
|
|
USE_GNOME= imlib
|
2003-10-24 22:08:06 +02:00
|
|
|
USE_GMAKE= yes
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= UNIX
|
2001-10-05 19:46:18 +02:00
|
|
|
|
|
|
|
MAN1= ${PORTNAME}.1
|
2001-06-01 20:00:00 +02:00
|
|
|
|
2003-10-24 22:08:06 +02:00
|
|
|
post-patch:
|
|
|
|
@${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|malloc\.h|stdlib.h|g'
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|make|$$(MAKE)|g' ${WRKSRC}/Makefile
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|/usr/share/vertex|${DATADIR}|g' ${WRKSRC}/vertex/config.h
|
2005-02-25 18:17:21 +01:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's|echo -n -e|printf|g' -e 's|--color=auto||' \
|
|
|
|
${WRKSRC}/vertex/makefile_append.ini
|
2003-10-24 22:08:06 +02:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|%%CC%%|${CC}|g ; \
|
|
|
|
s|%%CXX%%|${CXX}|g ; \
|
|
|
|
s|%%CXXFLAGS%%|${CXXFLAGS}|g ; \
|
|
|
|
s|%%PREFIX%%|${PREFIX}|g ; \
|
- 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 19:56:05 +02:00
|
|
|
s|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/vertex/platforms.ini
|
2003-10-24 22:08:06 +02:00
|
|
|
@${REINPLACE_CMD} -e \
|
- 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 19:56:05 +02:00
|
|
|
's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/vertex/vmahelp.c
|
2003-10-24 22:08:06 +02:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|CC =|CC ?=|g' ${WRKSRC}/pconf/Makefile
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/vertex/vertex ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/vertex/vertex.1 ${MANPREFIX}/man/man1
|
|
|
|
@${MKDIR} ${DATADIR}/icons
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/vertex/vertex.xpm ${DATADIR}/icons
|
|
|
|
cd ${WRKSRC}/vertex/data && ${FIND} . -type f | \
|
2004-01-22 13:18:43 +01:00
|
|
|
${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
|
2003-10-24 22:08:06 +02:00
|
|
|
@${FIND} ${DATADIR} -type d | ${XARGS} ${CHMOD} a+x
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|