2003-02-26 05:41:11 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.9 2003/02/26 10:41:11 espie Exp $
|
2001-08-11 10:45:21 -04:00
|
|
|
|
|
|
|
COMMENT= "Qt-based 2D CAD system"
|
|
|
|
|
|
|
|
PKGNAME= ${DISTNAME:S/-src//}
|
2002-12-09 12:35:57 -05:00
|
|
|
DISTNAME= qcad-1.5.4-src
|
2001-08-11 10:45:21 -04:00
|
|
|
CATEGORIES= cad x11
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.qcad.org/
|
|
|
|
|
2002-05-10 20:31:22 -04:00
|
|
|
MAINTAINER= Jacob Meuser <jakemsr@jakemsr.com>
|
2001-08-11 10:45:21 -04:00
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2002-12-09 12:35:57 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=qcad/}
|
2001-08-11 10:45:21 -04:00
|
|
|
|
2002-05-17 14:38:55 -04:00
|
|
|
MODULES= qt3
|
2003-02-26 05:41:11 -05:00
|
|
|
MODQT_MT= Yes
|
2001-08-11 10:45:21 -04:00
|
|
|
|
|
|
|
MAKE_FLAGS= \
|
2002-12-09 12:35:57 -05:00
|
|
|
CXX='${CXX}' \
|
2003-02-26 05:41:11 -05:00
|
|
|
CXXFLAGS='${CXXFLAGS} -pthread -Wall -DQT_NO_DEBUG -DDATADIR=\"${PREFIX}/share\"' \
|
2002-05-17 14:38:55 -04:00
|
|
|
INCPATH='-I${MODQT_INCDIR}' \
|
2001-08-11 10:45:21 -04:00
|
|
|
LINK='${CXX}' \
|
|
|
|
LFLAGS='' \
|
2003-02-26 05:41:11 -05:00
|
|
|
LIBS='-pthread -L${MODQT_LIBDIR} -L${LOCALBASE}/lib -lqt-mt -L${X11BASE}/lib -lX11' \
|
2002-12-09 12:35:57 -05:00
|
|
|
AR='ar cq'
|
2001-08-11 10:45:21 -04:00
|
|
|
|
2002-12-09 12:35:57 -05:00
|
|
|
ALL_TARGET= qcad
|
2001-11-14 02:43:59 -05:00
|
|
|
NO_REGRESS= Yes
|
2002-12-09 12:35:57 -05:00
|
|
|
WRKDIST= ${WRKDIR}/${PKGNAME}
|
2001-11-14 02:43:59 -05:00
|
|
|
|
2001-08-11 10:45:21 -04:00
|
|
|
do-install:
|
2002-12-09 12:35:57 -05:00
|
|
|
chmod ${DIRMODE} ${WRKSRC}/libraries/mechanical/screws/chc
|
2001-08-11 10:45:21 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/qcad ${PREFIX}/bin
|
2002-12-09 12:35:57 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/qcad
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${PREFIX}/share/examples/qcad
|
|
|
|
.for dir in cur fonts hatches messages xpm
|
2001-08-11 10:45:21 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/qcad/${dir}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${dir}/* ${PREFIX}/share/qcad/${dir}
|
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/qcad/libraries
|
|
|
|
cd ${WRKSRC}/libraries; cp -R * ${PREFIX}/share/qcad/libraries
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/qcad
|
|
|
|
cd ${WRKSRC}/doc; cp -R * ${PREFIX}/share/doc/qcad
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|