mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
3e4ed01146
- 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)
57 lines
1.5 KiB
Makefile
57 lines
1.5 KiB
Makefile
# New ports collection makefile for: leocad
|
|
# Date created: 27 Jan 2002
|
|
# Whom: David Yeske <dyeske@gmail.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= leocad
|
|
PORTVERSION= 0.73
|
|
PORTREVISION= 4
|
|
CATEGORIES= cad
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
MASTER_SITE_SUBDIR= arved
|
|
DISTFILES= leocad-${PORTVERSION:S/.p/pre/}.tgz leocad-pieces-20030330.zip
|
|
EXTRACT_ONLY= leocad-${PORTVERSION:S/.p/pre/}.tgz
|
|
|
|
MAINTAINER= dyeske@gmail.com
|
|
COMMENT= A CAD program that uses bricks similar to those found in many toys
|
|
|
|
EXTRACT_DEPENDS=unzip:${PORTSDIR}/archivers/unzip
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
|
png.5:${PORTSDIR}/graphics/png \
|
|
glut.4:${PORTSDIR}/graphics/libglut
|
|
|
|
USE_XORG= x11
|
|
USE_GMAKE= yes
|
|
USE_GNOME= gtk12
|
|
|
|
MAKE_ENV+= CXX=${CXX}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} < 600000
|
|
BROKEN= Does not compile on FreeBSD 5.x
|
|
.endif
|
|
|
|
post-extract:
|
|
@${UNZIP_CMD} -q -o ${DISTDIR}/leocad-pieces-20030330.zip -d ${WRKDIR}/pieces
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
's|%%LOCALBASE%%|${LOCALBASE}|g; \
|
|
s|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|; \
|
|
s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|' \
|
|
${WRKSRC}/config.mk
|
|
@cd ${WRKSRC}/linux/&&${REINPLACE_CMD} -e 's|[(]int[)]data|(intptr_t)data|'\
|
|
dialogs.cpp dlgpiece.cpp main.cpp toolbar.cpp
|
|
@${REINPLACE_CMD} -Ee 's|[(]int[)](.*Group)|(intptr_t)\1|'\
|
|
${WRKSRC}/common/project.cpp
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/leocad ${PREFIX}/bin
|
|
${MKDIR} ${DATADIR}
|
|
${INSTALL_DATA} ${WRKDIR}/pieces/* ${DATADIR}
|
|
|
|
.include <bsd.port.post.mk>
|