2012-12-14 18:27:03 +01:00
|
|
|
# Created by: David Yeske <dyeske@gmail.com>
|
2002-03-03 01:40:21 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= leocad
|
2012-12-14 18:27:03 +01:00
|
|
|
PORTVERSION= 0.79.0
|
2002-03-03 01:40:21 +01:00
|
|
|
CATEGORIES= cad
|
2012-07-11 22:28:58 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
|
|
|
|
DISTFILES= ${LEOCAD_DISTNAME} ${LEOCAD_PIECES}
|
|
|
|
EXTRACT_ONLY= ${LEOCAD_DISTNAME}
|
2002-03-03 01:40:21 +01:00
|
|
|
|
2009-02-03 00:44:01 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-01-07 03:07:26 +01:00
|
|
|
COMMENT= CAD modeling with LEGO-like bricks
|
2002-03-03 01:40:21 +01:00
|
|
|
|
2004-04-12 00:57:33 +02:00
|
|
|
EXTRACT_DEPENDS=unzip:${PORTSDIR}/archivers/unzip
|
2012-07-11 22:28:58 +02:00
|
|
|
LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \
|
2012-06-01 07:26:28 +02:00
|
|
|
png15:${PORTSDIR}/graphics/png
|
2002-03-03 01:40:21 +01:00
|
|
|
|
2012-07-11 22:28:58 +02:00
|
|
|
LEOCAD_DISTNAME=leocad-${PORTVERSION}-src.tgz
|
|
|
|
LEOCAD_PIECES= pieces-5823b.zip
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
2009-01-23 17:28:36 +01:00
|
|
|
USE_GL= glut
|
2007-08-18 21:45:01 +02:00
|
|
|
USE_XORG= x11
|
2002-03-03 01:40:21 +01:00
|
|
|
USE_GMAKE= yes
|
2012-07-11 22:28:58 +02:00
|
|
|
USE_GNOME= gtk20
|
2009-11-20 23:53:09 +01:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2002-03-03 01:40:21 +01:00
|
|
|
|
2013-01-07 03:07:26 +01:00
|
|
|
DESKTOP_ENTRIES="Leocad" "${COMMENT}" "" "${PORTNAME}" "" "true"
|
2012-07-11 22:28:58 +02:00
|
|
|
|
|
|
|
PLIST_FILES= bin/leocad \
|
|
|
|
${DATADIR_REL}/pieces.bin \
|
|
|
|
${DATADIR_REL}/pieces.idx
|
|
|
|
PLIST_DIRS= ${DATADIR_REL}
|
|
|
|
MAN1= leocad.1
|
|
|
|
|
2002-03-03 01:40:21 +01:00
|
|
|
post-extract:
|
2012-07-11 22:28:58 +02:00
|
|
|
@${UNZIP_CMD} -q -o ${DISTDIR}/${LEOCAD_PIECES} -d ${WRKDIR}/pieces
|
2002-03-03 01:40:21 +01:00
|
|
|
|
|
|
|
post-patch:
|
2003-05-01 01:00:35 +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; \
|
2003-05-01 01:00:35 +02:00
|
|
|
s|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|; \
|
|
|
|
s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|' \
|
|
|
|
${WRKSRC}/config.mk
|
2012-07-11 22:28:58 +02:00
|
|
|
@${REINPLACE_CMD} 's|share/man|man|g' \
|
|
|
|
${WRKSRC}/Makefile
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
cd ${WRKSRC} && ${GMAKE} config
|
2002-03-03 01:40:21 +01:00
|
|
|
|
2012-07-11 22:28:58 +02:00
|
|
|
post-install:
|
2002-03-03 01:40:21 +01:00
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/pieces/* ${DATADIR}
|
|
|
|
|
2012-09-08 08:53:18 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Does not compile on sparc64
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|