openbsd-ports/cad/chipmunk/Makefile
sturm 2841e52f26 build a file with -O0 on sparc64 (this only fixes the build, the program
itself is probably broken, as there are *lots* of 64bit issues)
2003-11-21 14:50:41 +00:00

69 lines
2.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.2 2003/11/21 14:50:41 sturm Exp $
COMMENT= "electronic CAD system"
PKGNAME= chipmunk-1.57
DISTNAME= psys-1.57
DISTFILES= psys-1.57.tar.gz webdoc1.46.tar.gz log-5.61.tar.gz \
view-1.13.tar.gz until-1.13.tar.gz wol-1.13.tar.gz \
wolcomp-1.13.tar.gz
CATEGORIES= cad
HOMEPAGE= http://www.pcmp.caltech.edu/chipmunk/
MAINTAINER= Peter Valchev <pvalchev@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://www.cs.berkeley.edu/~lazzaro/chipmunk/pickup/sources/
DIST_SUBDIR= chipmunk
.if ${MACHINE_ARCH} == "sparc64"
PATCH_LIST= patch-* gcc-*
.endif
WRKDIST= ${WRKDIR}
ALL_TARGET= makeonly
LDIR= ${LOCALBASE}/share/chipmunk/
MAKE_FLAGS= CHIPMUNKCC="${CC} ${CFLAGS}" XINCLUDEDIR="${X11BASE}/include" \
CHIPMUNKFLAGS="-DBSD -Dfreebsd -Dlinux -DF_OK=0" \
LIBX11="-L${X11BASE}/lib -lX11" \
CHIPLIB="${LDIR}" \
LOGLIBDIR="${LDIR}" \
LIBDIR="${LDIR}" \
WOLLIBDIR="${LDIR}" \
UNTILPSMAP="${LDIR}/pensps.map"
FAKE_FLAGS= ${MAKE_FLAGS}
USE_X11= Yes
NO_REGRESS= Yes
post-extract:
@cp ${FILESDIR}/Makefile ${WRKDIR}
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/chipmunk
${INSTALL_DATA} ${WRKSRC}/psys/src/texstuff.ps ${PREFIX}/share/doc/chipmunk/
${INSTALL_DATA} ${WRKSRC}/psys/src/untilstuff.ps ${PREFIX}/share/doc/chipmunk/
${INSTALL_PROGRAM} ${WRKSRC}/log/src/log ${PREFIX}/bin/diglog
${INSTALL_PROGRAM} ${WRKSRC}/log/src/log ${PREFIX}/bin/analog
${INSTALL_PROGRAM} ${WRKSRC}/log/src/loged ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/log/src/fixfet7 ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/wol/wol ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/until/V1.2/until ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/until/V1.2/pensps.map ${PREFIX}/share/doc/chipmunk/
${INSTALL_DATA} ${WRKSRC}/until/V1.2/system.untilrc ${PREFIX}/share/doc/chipmunk/
${INSTALL_DATA} ${WRKSRC}/until/V1.2/until.pro ${PREFIX}/share/doc/chipmunk/
${INSTALL_DATA} ${WRKSRC}/until/V1.2/until.ps ${PREFIX}/share/doc/chipmunk/
${INSTALL_DATA} ${WRKSRC}/view/view ${PREFIX}/bin/cview
${INSTALL_DATA_DIR} ${PREFIX}/share/chipmunk
${INSTALL_DATA} ${WRKSRC}/log/lib/*.* ${PREFIX}/share/chipmunk
${INSTALL_DATA} ${WRKSRC}/view/lib/* ${PREFIX}/share/chipmunk
.include <bsd.port.mk>