aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cad/leocad/Makefile21
-rw-r--r--cad/leocad/distinfo2
2 files changed, 13 insertions, 10 deletions
diff --git a/cad/leocad/Makefile b/cad/leocad/Makefile
index 8f2b5542d7ac..181e14e6f815 100644
--- a/cad/leocad/Makefile
+++ b/cad/leocad/Makefile
@@ -8,9 +8,9 @@
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
+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@yahoo.com
@@ -20,20 +20,23 @@ BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
png.5:${PORTSDIR}/graphics/png
+USE_X_PREFIX= yes
+USE_MESA= yes
USE_GMAKE= yes
USE_GNOME= gtk12
-USE_MESA= yes
-USE_X_PREFIX= yes
+USE_REINPLACE= yes
MAKE_ENV+= CXX=${CXX}
post-extract:
- @unzip -q -o ${DISTDIR}/pieces.zip -d ${WRKDIR}/pieces
+ @unzip -q -o ${DISTDIR}/leocad-pieces-20030330.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
+ @${REINPLACE_CMD} -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
diff --git a/cad/leocad/distinfo b/cad/leocad/distinfo
index 0a42f4f97cc6..9f876590f87a 100644
--- a/cad/leocad/distinfo
+++ b/cad/leocad/distinfo
@@ -1,2 +1,2 @@
MD5 (leocad-0.73.tgz) = 7bce5fc75817f83bf2c789e2ef8d95ec
-MD5 (pieces.zip) = f3f0cbe8ed606f22c1e40a20b75b3cf5
+MD5 (leocad-pieces-20030330.zip) = f3f0cbe8ed606f22c1e40a20b75b3cf5