2013-09-12 00:48:38 +00:00
|
|
|
# Created by: Pedro F. Giffuni <giffunip@asme.org>
|
2005-01-22 16:27:18 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= z88
|
2010-02-08 15:03:19 +00:00
|
|
|
PORTVERSION= 13.0
|
2012-06-01 05:26:28 +00:00
|
|
|
PORTREVISION= 2
|
2005-01-22 16:27:18 +00:00
|
|
|
CATEGORIES= cad
|
2010-02-08 15:03:19 +00:00
|
|
|
MASTER_SITES= http://www.z88.uni-bayreuth.de/download/
|
|
|
|
DISTFILES= ${PORTNAME}130${EXTRACT_SUFX} ${PORTNAME}mane.pdf
|
2005-01-22 16:27:18 +00:00
|
|
|
DIST_SUBDIR= z88
|
2010-02-08 15:03:19 +00:00
|
|
|
EXTRACT_ONLY= ${PORTNAME}130${EXTRACT_SUFX}
|
2005-01-22 16:27:18 +00:00
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2014-01-20 21:00:05 +00:00
|
|
|
COMMENT= Compact Finite Element Analysis System
|
2005-01-22 16:27:18 +00:00
|
|
|
|
2013-12-11 14:53:20 +00:00
|
|
|
LIB_DEPENDS= libgtkglext-x11-1.0.so:${PORTSDIR}/x11-toolkits/gtkglext
|
2010-02-08 15:03:19 +00:00
|
|
|
|
2005-01-22 16:27:18 +00:00
|
|
|
NO_WRKSUBDIR= yes
|
2013-09-12 00:48:38 +00:00
|
|
|
USES= pkgconfig
|
2010-02-08 15:03:19 +00:00
|
|
|
USE_GL= glu
|
|
|
|
USE_GNOME= gtk20
|
2005-01-22 16:27:18 +00:00
|
|
|
|
|
|
|
#These defaults can be changed in z88.fcd too
|
2010-02-08 15:03:19 +00:00
|
|
|
BROWSER?= firefox3
|
|
|
|
XEDITOR?= gedit
|
2005-01-22 16:27:18 +00:00
|
|
|
|
2014-01-20 21:00:05 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2005-01-22 16:27:18 +00:00
|
|
|
Z88_BINS= z88f z88i1 z88i2 z88com z88d z88e z88g z88h z88n z88o \
|
2010-02-08 15:03:19 +00:00
|
|
|
z88x z88v
|
2005-01-22 16:27:18 +00:00
|
|
|
Z88_DATA= z88.fcd z88.dyn *.dxf *.txt
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${CP} ${WRKSRC}/z88.fcd.linux ${WRKSRC}/z88.fcd
|
2010-02-08 15:03:19 +00:00
|
|
|
@${CP} ${WRKSRC}/z88.mk.kernel.gcc32 ${WRKSRC}/z88.kernel.mk
|
|
|
|
@${CP} ${WRKSRC}/z88.mk.other.gcc32 ${WRKSRC}/z88.other.mk
|
|
|
|
@${CP} ${WRKSRC}/z88.mk.gtk.gcc32 ${WRKSRC}/z88.gtk.mk
|
|
|
|
@${CP} ${FILESDIR}/z88.sh ${WRKSRC}/z88.sh
|
2005-01-22 16:27:18 +00:00
|
|
|
@${CP} ${FILESDIR}/z88.sh ${WRKSRC}/z88.sh
|
|
|
|
@${REINPLACE_CMD} -e 's+%%DOCSDIR%%+${DOCSDIR}+g; \
|
2010-02-08 15:03:19 +00:00
|
|
|
s+firefox+${BROWSER}+ ; \
|
|
|
|
s+joe+${XEDITOR}+ ;' \
|
2005-01-22 16:27:18 +00:00
|
|
|
${WRKSRC}/z88.fcd
|
|
|
|
@${REINPLACE_CMD} -e 's+%%CC%%+${CC}+g ; s+%%CFLAGS%%+${CFLAGS}+g' \
|
2010-02-08 15:03:19 +00:00
|
|
|
${WRKSRC}/z88.kernel.mk
|
2005-01-22 16:27:18 +00:00
|
|
|
@${REINPLACE_CMD} -e 's+%%CC%%+${CC}+g ; s+%%CFLAGS%%+${CFLAGS}+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 17:56:05 +00:00
|
|
|
s+%%LOCALBASE%%+${LOCALBASE}+g;' \
|
2010-02-08 15:03:19 +00:00
|
|
|
${WRKSRC}/z88.other.mk
|
|
|
|
@${REINPLACE_CMD} -e 's+%%CC%%+${CC}+g ; s+%%CFLAGS%%+${CFLAGS}+g' \
|
|
|
|
${WRKSRC}/z88.gtk.mk
|
2005-01-22 16:27:18 +00:00
|
|
|
@${REINPLACE_CMD} -e 's+%%PREFIX%%+${PREFIX}+g; ' \
|
|
|
|
${WRKSRC}/z88.sh
|
|
|
|
|
|
|
|
do-build:
|
2010-02-08 15:03:19 +00:00
|
|
|
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} -f z88.kernel.mk kernel)
|
|
|
|
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} -f z88.other.mk other clean)
|
|
|
|
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} -f z88.gtk.mk gtk)
|
2005-01-22 16:27:18 +00:00
|
|
|
|
|
|
|
do-install:
|
2014-01-20 21:00:05 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/z88.sh ${STAGEDIR}${PREFIX}/bin/z88
|
|
|
|
${INSTALL_PROGRAM} ${Z88_BINS:S|^|${WRKSRC}/|} ${STAGEDIR}${PREFIX}/bin
|
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
${INSTALL_DATA} ${Z88_DATA:S|^|${WRKSRC}/|} ${STAGEDIR}${DATADIR}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.htm ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.gif ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.jpg ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/z88mane.pdf ${STAGEDIR}${DOCSDIR}
|
2005-01-22 16:27:18 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|