openbsd-ports/lang/processing/Makefile

57 lines
1.5 KiB
Makefile
Raw Normal View History

2011-09-16 06:31:20 -04:00
# $OpenBSD: Makefile,v 1.6 2011/09/16 10:31:21 espie Exp $
SHARED_ONLY= Yes
2011-06-24 17:12:52 -04:00
COMMENT= language/IDE for images, animations and interactions
V= 1.5.1
DISTNAME= processing-$V-linux
PKGNAME= ${DISTNAME:S/-linux//}
2011-09-16 06:31:20 -04:00
REVISION= 3
CATEGORIES= lang graphics
HOMEPAGE= http://processing.org/
MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>
# IDE: GPL
# Core libraries: LGPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://processing.googlecode.com/files/
EXTRACT_SUFX= .tgz
2011-07-03 17:49:30 -04:00
RUN_DEPENDS= devel/desktop-file-utils
MODULES= java
MODJAVA_VER= 1.6+
WRKDIST= ${WRKDIR}/${DISTNAME:S/-linux//}
NO_REGRESS= Yes
PROCESSING_HOME= ${PREFIX}/share/processing/
# Trash > 125M of files we don't care about: the pre-compiled Java binaries
# for Linux. And adjust the wrapper script.
do-build:
rm -fr ${WRKSRC}/java/ ${WRKSRC}/lib/preferences.txt.orig
${SUBST_CMD} ${WRKSRC}/processing
do-install:
${INSTALL_DATA_DIR} ${PROCESSING_HOME}
cd ${WRKSRC}; tar cf - * | tar xf - -C ${PROCESSING_HOME}
ln -s ${JAVA_HOME} ${PROCESSING_HOME}/java
rm -f ${PROCESSING_HOME}/processing.{beforesubst,orig}
mv ${PROCESSING_HOME}/processing ${PREFIX}/bin
2011-07-03 17:49:30 -04:00
${INSTALL_DATA_DIR} ${PREFIX}/share/applications/ ${PREFIX}/share/pixmaps/
${INSTALL_DATA} ${FILESDIR}/processing.desktop \
${PREFIX}/share/applications/
${INSTALL_DATA} ${FILESDIR}/processing-48.xpm ${PREFIX}/share/pixmaps/
.include <bsd.port.mk>