5dd37213f5
* rephrase Comment field or use port ${COMMENT} if appropriate * adjust Icon field according to the Desktop Entry Specification * update Categories field: remove deprecated category Application; set main category, if missing - Remove indefinite article and/or rephrase COMMENT - Trim Makefile header - Other minor changes
61 lines
1.4 KiB
Makefile
61 lines
1.4 KiB
Makefile
# Created by: David Yeske <dyeske@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= leocad
|
|
PORTVERSION= 0.79.0
|
|
CATEGORIES= cad
|
|
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
|
|
DISTFILES= ${LEOCAD_DISTNAME} ${LEOCAD_PIECES}
|
|
EXTRACT_ONLY= ${LEOCAD_DISTNAME}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= CAD modeling with LEGO-like bricks
|
|
|
|
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_GNOME= gtk20
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
DESKTOP_ENTRIES="Leocad" "${COMMENT}" "" "${PORTNAME}" "" "true"
|
|
|
|
PLIST_FILES= bin/leocad \
|
|
${DATADIR_REL}/pieces.bin \
|
|
${DATADIR_REL}/pieces.idx
|
|
PLIST_DIRS= ${DATADIR_REL}
|
|
MAN1= leocad.1
|
|
|
|
post-extract:
|
|
@${UNZIP_CMD} -q -o ${DISTDIR}/${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
|
|
|
|
do-configure:
|
|
cd ${WRKSRC} && ${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
|
|
|
|
.include <bsd.port.post.mk>
|