diff options
author | nemysis <nemysis@FreeBSD.org> | 2013-09-18 01:51:28 +0800 |
---|---|---|
committer | nemysis <nemysis@FreeBSD.org> | 2013-09-18 01:51:28 +0800 |
commit | 114ce0743ce13851d5fd459d8fe4d7a62ccac1bc (patch) | |
tree | ced4f581c2e8c1b77635ec49ac5987a3660a59c5 /cad/ldraw/Makefile | |
parent | 9d66d07ed896a30b3950d36cbd6633ab54348269 (diff) | |
download | freebsd-ports-gnome-114ce0743ce13851d5fd459d8fe4d7a62ccac1bc.tar.gz freebsd-ports-gnome-114ce0743ce13851d5fd459d8fe4d7a62ccac1bc.tar.zst freebsd-ports-gnome-114ce0743ce13851d5fd459d8fe4d7a62ccac1bc.zip |
- Update to 201301
- Add PORTEPOCH
- Change maintainer email gmx.ch --> FreeBSD.org
- Add license (CCbyNCSA2)
- Remove BROKEN and NO_BUILD
- USES gmake
- Add docs and docs Option
- Add pkg-message
Approved by: wg/pawel (mentors)
Diffstat (limited to 'cad/ldraw/Makefile')
-rw-r--r-- | cad/ldraw/Makefile | 56 |
1 files changed, 47 insertions, 9 deletions
diff --git a/cad/ldraw/Makefile b/cad/ldraw/Makefile index 3c5230a0b854..e35e791044cb 100644 --- a/cad/ldraw/Makefile +++ b/cad/ldraw/Makefile @@ -1,30 +1,68 @@ -# Created by: nemysis@gmx.ch +# Created by: nemysis <nemysis@gmx.ch> # $FreeBSD$ PORTNAME= ldraw -PORTVERSION= 20120913 +PORTVERSION= 201301 +PORTEPOCH= 1 CATEGORIES= cad MASTER_SITES= http://www.ldraw.org/library/updates/ DISTNAME= complete DIST_SUBDIR= ${PORTNAME} -MAINTAINER= nemysis@gmx.ch +MAINTAINER= nemysis@FreeBSD.org COMMENT= LDraw parts library -LICENSE= CDDL +LICENSE= CDDL CCbyNCSA2 +LICENSE_COMB= dual +LICENSE_NAME_CCbyNCSA2=Attribution-NonCommercial-ShareAlike 2.0 Unported +LICENSE_FILE_CCbyNCSA2=${WRKSRC}/CAlicense.txt +LICENSE_PERMS_CCbyNCSA2=dist-mirror pkg-mirror auto-accept + +WRKSRC= ${WRKDIR}/${PORTNAME} -BROKEN= Unfetchable due to checksum mismatch USE_ZIP= yes -NO_BUILD= yes +USES= gmake -WRKSRC= ${WRKDIR}/${PORTNAME} +PORTDOCS= Readme.txt + +OPTIONS_DEFINE= DOCS + +SUB_FILES= pkg-message + +.include <bsd.port.options.mk> + +post-extract-script: + @(cd ${WRKSRC} && ${UNZIP_CMD} -qo -d ${WRKSRC}/mklist1_4 ${WRKSRC}/mklist1_4.zip) + +post-patch: + @${REINPLACE_CMD} -e 's|CC=gcc|CC?=gcc|' \ + -e 's|CFLAGS=|CFLAGS?=|' \ + ${WRKSRC}/mklist1_4/makefile + @${REINPLACE_CMD} -e 's|PARTS|parts|' \ + ${WRKSRC}/mklist1_4/mklist.c + +do-build: + @(cd ${WRKSRC}/mklist1_4 ; ${GMAKE} ${MAKE_ENV}) do-install: - @(cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${DATADIR}) +.for f in models p parts LDCfgalt.ldr LDConfig.ldr LDConfig_TLG.ldr + @(cd ${WRKSRC} ; ${COPYTREE_SHARE} ${f} ${DATADIR}) +.endfor + + ${INSTALL_SCRIPT} ${WRKSRC}/mklist1_4/mklist ${DATADIR} + @(cd ${DATADIR} ; ./mklist -n) + +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} +.endif -post-install: @${FIND} ${DATADIR}/ ! -type d | ${SED} 's|^${PREFIX}/||' >> ${TMPPLIST} @${FIND} -ds ${DATADIR}/ -type d | \ ${SED} -E -e 's,(.*),@unexec ${RMDIR} "\1" 2>/dev/null || true,' >> ${TMPPLIST} + @${ECHO_CMD} + @${CAT} ${PKGMESSAGE} + @${ECHO_CMD} + .include <bsd.port.mk> |