af627861ce
Changes: Examples installed in $PREFIX/examples/qcad. Uses qt3, so respective patches are now deprecated. Larger library of premade objects included. Better font and translation support. Various bugfixes. From: MAINTAINER. brad@ ok
51 lines
1.4 KiB
Makefile
51 lines
1.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.8 2002/12/09 17:35:57 margarida Exp $
|
|
|
|
COMMENT= "Qt-based 2D CAD system"
|
|
|
|
PKGNAME= ${DISTNAME:S/-src//}
|
|
DISTNAME= qcad-1.5.4-src
|
|
CATEGORIES= cad x11
|
|
|
|
HOMEPAGE= http://www.qcad.org/
|
|
|
|
MAINTAINER= Jacob Meuser <jakemsr@jakemsr.com>
|
|
|
|
# GPL
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=qcad/}
|
|
|
|
MODULES= qt3
|
|
|
|
MAKE_FLAGS= \
|
|
CXX='${CXX}' \
|
|
CXXFLAGS='${CXXFLAGS} -Wall -DQT_NO_DEBUG -DDATADIR=\"${PREFIX}/share\"' \
|
|
INCPATH='-I${MODQT_INCDIR}' \
|
|
LINK='${CXX}' \
|
|
LFLAGS='' \
|
|
LIBS='-L${MODQT_LIBDIR} -L${LOCALBASE}/lib -lqt -L${X11BASE}/lib -lX11' \
|
|
AR='ar cq'
|
|
|
|
ALL_TARGET= qcad
|
|
NO_REGRESS= Yes
|
|
WRKDIST= ${WRKDIR}/${PKGNAME}
|
|
|
|
do-install:
|
|
chmod ${DIRMODE} ${WRKSRC}/libraries/mechanical/screws/chc
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/qcad ${PREFIX}/bin
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/qcad
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${PREFIX}/share/examples/qcad
|
|
.for dir in cur fonts hatches messages xpm
|
|
${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>
|