aboutsummaryrefslogtreecommitdiffstats
path: root/cad/leocad/Makefile
diff options
context:
space:
mode:
authorpetef <petef@FreeBSD.org>2002-03-03 08:40:21 +0800
committerpetef <petef@FreeBSD.org>2002-03-03 08:40:21 +0800
commit52df7ab64fe1dd1988af16429abdcb8975fca4a9 (patch)
tree3e132fb6672d385e8f4ffae162218d782a160408 /cad/leocad/Makefile
parent33a5dd8a8bd87770b2d3db7cb418814e10f8cf25 (diff)
downloadfreebsd-ports-gnome-52df7ab64fe1dd1988af16429abdcb8975fca4a9.tar.gz
freebsd-ports-gnome-52df7ab64fe1dd1988af16429abdcb8975fca4a9.tar.zst
freebsd-ports-gnome-52df7ab64fe1dd1988af16429abdcb8975fca4a9.zip
Add leocad 0.73, a CAD program that uses bricks similar to those
found in many toys. PR: 35231 Submitted by: David Yeske <dyeske@yahoo.com>
Diffstat (limited to 'cad/leocad/Makefile')
-rw-r--r--cad/leocad/Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/cad/leocad/Makefile b/cad/leocad/Makefile
new file mode 100644
index 000000000000..ff28d65c0542
--- /dev/null
+++ b/cad/leocad/Makefile
@@ -0,0 +1,42 @@
+# New ports collection makefile for: leocad
+# Date created: 27 Jan 2002
+# Whom: David Yeske <dyeske@yahoo.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= leocad
+PORTVERSION= 0.73
+CATEGORIES= cad
+MASTER_SITES= http://www.leocad.org/files/ \
+ http://people.freebsd.org/~scottl/
+DISTFILES= leocad-${PORTVERSION:S/.p/pre/}.tgz pieces.zip
+EXTRACT_ONLY= leocad-${PORTVERSION:S/.p/pre/}.tgz
+
+MAINTAINER= dyeske@yahoo.com
+
+BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
+LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
+ png.5:${PORTSDIR}/graphics/png
+
+USE_GMAKE= yes
+USE_GTK= yes
+USE_MESA= yes
+USE_X_PREFIX= yes
+
+MAKE_ENV+= CXX=${CXX}
+
+post-extract:
+ @unzip -q -o ${DISTDIR}/pieces.zip -d ${WRKDIR}/pieces
+
+post-patch:
+ @${PERL} -pi -e 's,%%LOCALBASE%%,${LOCALBASE},g; \
+ s,%%PTHREAD_CFLAGS%%,${PTHREAD_CFLAGS},; \
+ s,%%PTHREAD_LIBS%%,${PTHREAD_LIBS},' ${WRKSRC}/config.mk
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/leocad ${PREFIX}/bin
+ ${MKDIR} ${DATADIR}
+ ${INSTALL_DATA} ${WRKDIR}/pieces/* ${DATADIR}
+
+.include <bsd.port.mk>