61 lines
1.7 KiB
Makefile
61 lines
1.7 KiB
Makefile
# $OpenBSD: Makefile,v 1.8 2011/03/17 14:02:51 jasper Exp $
|
|
|
|
ONLY_FOR_ARCHS =${GCC4_ARCHS}
|
|
|
|
COMMENT= interactive electronics designing software
|
|
|
|
V= 0.5.2b
|
|
DISTNAME= fritzing.2011.02.18.source
|
|
PKGNAME= fritzing-$V
|
|
REVISION= 0
|
|
CATEGORIES= cad
|
|
|
|
HOMEPAGE= http://fritzing.org/
|
|
|
|
MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>
|
|
|
|
# Code: GPLv3+
|
|
# Rest: CreativeCommons:BY-SA
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
MASTER_SITES= ${HOMEPAGE}/download/$V/source-tarball/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
WANTLIB += QtGui QtNetwork QtSql QtSvg QtWebKit QtXml
|
|
WANTLIB += c m pthread stdc++ z
|
|
|
|
MODULES= x11/qt4
|
|
NO_REGRESS= Yes
|
|
|
|
BUILD_DEPENDS= devel/boost
|
|
RUN_DEPENDS= devel/desktop-file-utils \
|
|
x11/qt4,-sqlite
|
|
|
|
pre-configure:
|
|
${SUBST_CMD} ${WRKSRC}/phoenix.pro ${WRKSRC}/src/fapplication.cpp
|
|
cd ${WRKSRC} && rm -fr src/lib/boost_1_43_0
|
|
|
|
# -DLINUX_32 gets added to CFLAGS, though it's only used to figure out
|
|
# if there is a newer version of the 32-bit Linux binary on the upstream
|
|
# webpage. So it's safe to set it on all arches (for now).
|
|
do-configure:
|
|
cd ${WRKSRC} && \
|
|
${LOCALBASE}/bin/qmake4 -o Makefile phoenix.pro
|
|
|
|
do-install:
|
|
${SUBST_CMD} -o ${BINOWN} -g ${BINGRP} -c ${FILESDIR}/fritzing.sh \
|
|
${PREFIX}/bin/fritzing
|
|
chmod ${BINMODE} ${PREFIX}/bin/fritzing
|
|
${INSTALL_PROGRAM} ${WRKSRC}/Fritzing ${PREFIX}/bin
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/fritzing/
|
|
cd ${WRKSRC}; tar cf - bins parts resources sketches tools translations | \
|
|
tar xf - -C ${PREFIX}/share/fritzing/
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/applications/
|
|
${SUBST_CMD} -o ${SHAREOWN} -g ${SHAREGRP} -c ${FILESDIR}/fritzing.desktop \
|
|
${PREFIX}/share/applications/fritzing.desktop
|
|
|
|
.include <bsd.port.mk>
|