diff options
author | araujo <araujo@FreeBSD.org> | 2013-02-04 18:03:15 +0800 |
---|---|---|
committer | araujo <araujo@FreeBSD.org> | 2013-02-04 18:03:15 +0800 |
commit | f5b6ea25515c2997ac2c3ca4346027e69b75a408 (patch) | |
tree | ed7edd92ef8455634df5f05cd26548759e245d1a /cad | |
parent | c848d9dc181e77617dfc4bd185036c0dd3b3a215 (diff) | |
download | freebsd-ports-gnome-f5b6ea25515c2997ac2c3ca4346027e69b75a408.tar.gz freebsd-ports-gnome-f5b6ea25515c2997ac2c3ca4346027e69b75a408.tar.zst freebsd-ports-gnome-f5b6ea25515c2997ac2c3ca4346027e69b75a408.zip |
- Update to 0.79.2.
PR: ports/174199
Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'cad')
-rw-r--r-- | cad/leocad/Makefile | 63 | ||||
-rw-r--r-- | cad/leocad/distinfo | 8 | ||||
-rw-r--r-- | cad/leocad/files/patch-config.mk | 20 | ||||
-rw-r--r-- | cad/leocad/pkg-plist | 12 |
4 files changed, 59 insertions, 44 deletions
diff --git a/cad/leocad/Makefile b/cad/leocad/Makefile index 2b13cc3c11e9..c8efe7e496e1 100644 --- a/cad/leocad/Makefile +++ b/cad/leocad/Makefile @@ -2,12 +2,12 @@ # $FreeBSD$ PORTNAME= leocad -PORTVERSION= 0.79.0 -PORTREVISION= 1 +PORTVERSION= 0.79.2 CATEGORIES= cad -MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} -DISTFILES= ${LEOCAD_DISTNAME} ${LEOCAD_PIECES} -EXTRACT_ONLY= ${LEOCAD_DISTNAME} +MASTER_SITES= GOOGLE_CODE +DISTFILES= ${PORTNAME}-${PORTVERSION}-src.tgz ${LEOCAD_PIECES} +DIST_SUBDIR= ${PORTNAME} +EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}-src.tgz MAINTAINER= ports@FreeBSD.org COMMENT= CAD modeling with LEGO-like bricks @@ -16,47 +16,44 @@ EXTRACT_DEPENDS=unzip:${PORTSDIR}/archivers/unzip LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \ png15:${PORTSDIR}/graphics/png -LEOCAD_DISTNAME=leocad-${PORTVERSION}-src.tgz -LEOCAD_PIECES= pieces-5823b.zip WRKSRC= ${WRKDIR}/${PORTNAME} -USE_GL= glut -USE_XORG= x11 -USE_GMAKE= yes +USE_GL= gl USE_GNOME= gtk20 -MAKE_JOBS_UNSAFE= yes - -DESKTOP_ENTRIES="Leocad" "${COMMENT}" "" "${PORTNAME}" "" "true" +USE_GMAKE= yes +INSTALL_ICONS= yes +MAKE_JOBS_SAFE= yes -PLIST_FILES= bin/leocad \ - ${DATADIR_REL}/pieces.bin \ - ${DATADIR_REL}/pieces.idx -PLIST_DIRS= ${DATADIR_REL} MAN1= leocad.1 +LEOCAD_PIECES= pieces-7114.zip + +.include <bsd.port.pre.mk> + +.if ${ARCH} == "sparc64" +BROKEN= Does not compile on sparc64 +.endif + post-extract: - @${UNZIP_CMD} -q -o ${DISTDIR}/${LEOCAD_PIECES} -d ${WRKDIR}/pieces + @${UNZIP_CMD} -q -o ${DISTDIR}/${DIST_SUBDIR}/${LEOCAD_PIECES} \ + -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 - @${REINPLACE_CMD} 's|share/man|man|g' \ - ${WRKSRC}/Makefile + 's|%%LOCALBASE%%|${LOCALBASE}| ; \ + s|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}| ; \ + s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|' ${WRKSRC}/config.mk + @${REINPLACE_CMD} -e \ + 's|+= -g|+=| ; \ + s|@$$(CXX)|$$(CXX)| ; \ + s|@install -c -m 0755|$${BSD_INSTALL_PROGRAM}| ; \ + s|@install -c -m 0644|$${BSD_INSTALL_MAN}| ; \ + s|share/man|man|' ${WRKSRC}/Makefile do-configure: - cd ${WRKSRC} && ${GMAKE} config + (cd ${WRKSRC} && ${SETENV} PREFIX="${PREFIX}" ${GMAKE} config) post-install: - ${MKDIR} ${DATADIR} - ${INSTALL_DATA} ${WRKDIR}/pieces/* ${DATADIR} - -.include <bsd.port.pre.mk> - -.if ${ARCH} == "sparc64" -BROKEN= Does not compile on sparc64 -.endif + (cd ${WRKDIR}/pieces && ${INSTALL_DATA} * ${DATADIR}) .include <bsd.port.post.mk> diff --git a/cad/leocad/distinfo b/cad/leocad/distinfo index bd08c288c696..431e7e983b89 100644 --- a/cad/leocad/distinfo +++ b/cad/leocad/distinfo @@ -1,4 +1,4 @@ -SHA256 (leocad-0.79.0-src.tgz) = 85f34dd560dec590ac5b0a5a7983359758fa58a729dbe3208a89c61f12440f24 -SIZE (leocad-0.79.0-src.tgz) = 624961 -SHA256 (pieces-5823b.zip) = 4c833bd1d89730757d8b391e20ba20ab133cd242b6717e89cee8fdf1c26f9a23 -SIZE (pieces-5823b.zip) = 44541797 +SHA256 (leocad/leocad-0.79.2-src.tgz) = d2b0a515ce8302cd9234450773a339e330718463edf52d721e20edf6ccfa74e3 +SIZE (leocad/leocad-0.79.2-src.tgz) = 2115720 +SHA256 (leocad/pieces-7114.zip) = 16506da21d139769524d140ce47bfce57bc5415f541fbd6f66a67025c1f535ab +SIZE (leocad/pieces-7114.zip) = 20546651 diff --git a/cad/leocad/files/patch-config.mk b/cad/leocad/files/patch-config.mk index a680e0e61b47..c41e868308f8 100644 --- a/cad/leocad/files/patch-config.mk +++ b/cad/leocad/files/patch-config.mk @@ -1,19 +1,25 @@ ---- config.mk.orig 2012-12-14 12:16:05.000000000 -0500 -+++ config.mk 2012-12-14 12:16:51.000000000 -0500 -@@ -6,12 +6,13 @@ ERROR_SETTING=2> /dev/null +--- config.mk.orig 2012-12-14 07:50:24.000000000 +0900 ++++ config.mk 2012-12-15 04:42:02.000000000 +0900 +@@ -6,17 +6,18 @@ default: all -CC := gcc -CXX := g++ -+CC ?= cc -+CXX ?= c++ ++CC ?= gcc ++CXX ?= g++ OSDIR := linux # (Add a -g for debugging) -CPPFLAGS += -O2 -Wall -+CPPFLAGS += -Wall -I%%LOCALBASE%%/include %%PTHREAD_CFLAGS%% -+LDFLAGS += %%PTHREAD_LIBS%% ++CPPFLAGS += -Wall ### FreeBSD configuration + ifeq ($(shell uname), FreeBSD) +-CPPFLAGS += -L/usr/local/lib ++CPPFLAGS += -I%%LOCALBASE%%/include %%PTHREAD_LIBS%% ++LDFLAGS += -L%%LOCALBASE%%/lib %%PTHREAD_LIBS%% + endif + + ### Default directory diff --git a/cad/leocad/pkg-plist b/cad/leocad/pkg-plist new file mode 100644 index 000000000000..0c2b2c46b50b --- /dev/null +++ b/cad/leocad/pkg-plist @@ -0,0 +1,12 @@ +bin/leocad +share/applications/leocad.desktop +share/icons/hicolor/scalable/mimetypes/application-vnd.leocad.svg +share/icons/hicolor/icon-theme.cache +%%DATADIR%%/icon.png +%%DATADIR%%/library.bin +share/mime/packages/leocad-mime.xml +share/pixmaps/leocad.svg +@dirrm %%DATADIR%% +@dirrmtry share/applications +@exec %%LOCALBASE%%/bin/update-mime-database %D/share/mime +@unexec %%LOCALBASE%%/bin/update-mime-database %D/share/mime |