2010-07-06 18:25:53 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.19 2010/07/06 22:25:53 espie Exp $
|
2001-08-11 10:45:21 -04:00
|
|
|
|
2007-09-15 17:36:57 -04:00
|
|
|
COMMENT= Qt-based 2D CAD system
|
2001-08-11 10:45:21 -04:00
|
|
|
|
2007-01-09 11:30:37 -05:00
|
|
|
V= 2.0.5.0
|
|
|
|
DISTNAME= qcad-${V}-1-community.src
|
2010-06-07 16:08:09 -04:00
|
|
|
PKGNAME= qcad-${V}p1
|
2007-01-09 11:30:37 -05:00
|
|
|
CATEGORIES= cad graphics
|
2001-08-11 10:45:21 -04:00
|
|
|
|
2007-01-09 11:30:37 -05:00
|
|
|
HOMEPAGE= http://www.ribbonsoft.com/qcad.html
|
2001-08-11 10:45:21 -04:00
|
|
|
|
2010-06-07 16:08:09 -04:00
|
|
|
# GPLv2
|
2007-01-09 11:30:37 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2010-06-07 16:08:09 -04:00
|
|
|
WANTLIB= X11 Xext c m pthread stdc++
|
2001-08-11 10:45:21 -04:00
|
|
|
|
2007-01-09 11:30:37 -05:00
|
|
|
MASTER_SITES= http://www.ribbonsoft.com/archives/qcad/
|
2001-08-11 10:45:21 -04:00
|
|
|
|
2004-08-10 04:12:09 -04:00
|
|
|
MODULES= x11/qt3
|
2007-01-09 11:30:37 -05:00
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
2006-11-13 05:08:12 -05:00
|
|
|
USE_X11= Yes
|
2007-01-09 11:30:37 -05:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
|
|
|
PORTHOME= ${WRKDIR}
|
|
|
|
|
|
|
|
MAKE_ENV+= QTDIR=${MODQT_LIBDIR} \
|
|
|
|
MAKE=${MAKE_PROGRAM}
|
2001-08-11 10:45:21 -04:00
|
|
|
|
2010-06-07 16:08:09 -04:00
|
|
|
SUBST_VARS= CXXFLAGS LOCALBASE MODQT_LIBDIR
|
|
|
|
|
2007-01-09 11:30:37 -05:00
|
|
|
pre-configure:
|
2010-06-07 16:08:09 -04:00
|
|
|
${SUBST_CMD} ${WRKSRC}/mkspecs/defs.pro \
|
|
|
|
${WRKSRC}/qcadlib/src/engine/rs_system.h \
|
|
|
|
${WRKSRC}/qcadlib/src/engine/rs_system.cpp \
|
2007-01-09 11:30:37 -05:00
|
|
|
${WRKSRC}/qcad/src/qc_applicationwindow.cpp
|
2001-08-11 10:45:21 -04:00
|
|
|
|
2007-01-09 11:30:37 -05:00
|
|
|
do-build:
|
|
|
|
cd ${WRKBUILD}/scripts && \
|
|
|
|
${SETENV} ${MAKE_ENV} /bin/sh ./build_qcad.sh
|
2001-11-14 02:43:59 -05:00
|
|
|
|
2001-08-11 10:45:21 -04:00
|
|
|
do-install:
|
2007-01-09 11:30:37 -05:00
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/qcad/qcad ${PREFIX}/bin
|
|
|
|
.for dir in fonts patterns qm
|
2001-08-11 10:45:21 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/qcad/${dir}
|
2007-01-09 11:30:37 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/qcad/${dir}/* ${PREFIX}/share/qcad/${dir}
|
2001-08-11 10:45:21 -04:00
|
|
|
.endfor
|
2007-01-09 11:30:37 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/qcad
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/qcad/data/* ${PREFIX}/share/examples/qcad
|
2001-08-11 10:45:21 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/qcad
|
2007-01-09 11:30:37 -05:00
|
|
|
cd ${WRKSRC}/qcad/doc && tar cf - . | \
|
|
|
|
tar -C ${PREFIX}/share/doc/qcad -xf -
|
|
|
|
chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/doc/qcad/*
|
2001-08-11 10:45:21 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|