mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
2656904255
Dave Shar <koalative at gmail.com> wishes to maintain these ports with my help. audio/liblo - Pass maintainership to koalative at gmail.com cad/brickutils - Bump PORTREVISION for adding PDF - Add DIST_SUBDIR because more files - Pass maintainership to koalative at gmail.com - Add PDF to DOCS cad/ldraw - Change Makefile header, use my name and @FreeBSD.org email - Pass maintainership to koalative at gmail.com - Break lines around 80 characters - Cosmetical changes cad/leocad - Update to 0.80.3, Announce message: Fixed mouse coordinates in OSX retina displays. Fixed shortcuts in the parts tree. - Pass maintainership to koalative at gmail.com - Remove TODO.txt from DOCS - Add more supplied icons textproc/unoconv - Pass maintainership to koalative at gmail.com
95 lines
2.8 KiB
Makefile
95 lines
2.8 KiB
Makefile
# Created by: David Yeske <dyeske@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= leocad
|
|
PORTVERSION= 0.80.3
|
|
CATEGORIES= cad
|
|
MASTER_SITES= SF/nemysisfreebsdp/${CATEGORIES}/${PORTNAME}/
|
|
DISTFILES= LeoCAD-Source-${PORTVERSION}.tgz
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
EXTRACT_ONLY= LeoCAD-Source-${PORTVERSION}.tgz
|
|
|
|
MAINTAINER= koalative@gmail.com
|
|
COMMENT= CAD program that uses bricks similar to those found in many toys
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \
|
|
libpng15.so:${PORTSDIR}/graphics/png
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
USES= desktop-file-utils gmake pkgconfig qmake shared-mime-info
|
|
USE_QT4= moc_build rcc_build uic_build iconengines_run imageformats_run \
|
|
corelib gui network opengl
|
|
USE_GL= glut
|
|
USE_GNOME= gtk20
|
|
|
|
PORTDOCS= CREDITS.txt README.txt
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
OPTIONS_SINGLE= LIBRARY
|
|
OPTIONS_SINGLE_LIBRARY= LDRAW LEOCAD
|
|
OPTIONS_DEFAULT= LEOCAD
|
|
|
|
LDRAW_DESC= Library from LDraw symlink, mostly fewer pieces
|
|
LEOCAD_DESC= Library from LeoCad file, mostly more pieces
|
|
|
|
INSTALLS_ICONS= yes
|
|
ICON_SIZES= 16x16 24x24 32x32 48x48 64x64 128x128 256x256 512x512
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MLDRAW}
|
|
RUN_DEPENDS= ${LOCALBASE}/share/ldraw/models/car.dat:${PORTSDIR}/cad/ldraw
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MLEOCAD}
|
|
LEOCAD_PIECES= Library-Linux-7931.zip
|
|
DISTFILES+= ${LEOCAD_PIECES}
|
|
EXTRACT_DEPENDS=${UNZIP_CMD}:${PORTSDIR}/archivers/unzip
|
|
post-extract:
|
|
@${UNZIP_CMD} -q -o ${_DISTDIR}/${LEOCAD_PIECES} -d ${WRKDIR}/pieces
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|; \
|
|
s|share/man/man1|man/man1|; \
|
|
s|docs.files = docs/README.txt docs/CREDITS.txt docs/COPYING.txt|docs.files = |' \
|
|
${WRKSRC}/${PORTNAME}.pro
|
|
|
|
.for s in 16 24 32 48 64 128 256 512
|
|
@cd ${WRKSRC}/tools/icon && \
|
|
${MV} ${PORTNAME}-${s}.png ${PORTNAME}_${s}x${s}.png
|
|
.endfor
|
|
@cd ${WRKSRC}/tools/icon && ${CP} -a ${PORTNAME}_128x128.png icon128.png
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
.if ${PORT_OPTIONS:MLDRAW}
|
|
${LN} -s ${PREFIX}/share/ldraw ${STAGEDIR}${DATADIR}/library.bin
|
|
.endif
|
|
.if ${PORT_OPTIONS:MLEOCAD}
|
|
${INSTALL_DATA} ${WRKDIR}/pieces/* ${STAGEDIR}${DATADIR}
|
|
.endif
|
|
|
|
.for s in ${ICON_SIZES}
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps
|
|
${INSTALL_DATA} ${WRKSRC}/tools/icon/${PORTNAME}_${s}.png \
|
|
${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
|
|
.endfor
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps
|
|
.for i in document*.png icon*.png
|
|
@cd ${WRKSRC}/tools/icon && ${INSTALL_DATA} ${i} \
|
|
${STAGEDIR}${DATADIR}
|
|
.endfor
|
|
@${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/
|
|
${INSTALL_MAN} ${WRKSRC}/docs/leocad.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/docs/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|