openbsd-ports/education/gamgi/Makefile

50 lines
1.3 KiB
Makefile
Raw Normal View History

2013-03-11 07:02:49 -04:00
# $OpenBSD: Makefile,v 1.19 2013/03/11 11:06:03 espie Exp $
COMMENT= General Atomistic Modelling Graphic Interface
2011-09-28 12:45:17 -04:00
V= 0.15.5
DISTNAME= gamgi-all-${V}
PKGNAME= ${DISTNAME:S/-all//}
CATEGORIES= education x11
HOMEPAGE= http://www.gamgi.org/
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= ftp://ftp.gamgi.org/gamgi/src/
USE_GMAKE= Yes
2009-12-16 12:59:43 -05:00
WANTLIB += GL GLU X11 Xext Xi Xmu atk-1.0 c cairo expat freetype
WANTLIB += gdk-x11-2.0 gdk_pixbuf-2.0 glib-2.0 gmodule-2.0 gobject-2.0
WANTLIB += gtk-x11-2.0 m pango-1.0 pangocairo-1.0 pthread
2010-07-24 13:43:17 -04:00
WANTLIB += gdkglext-x11-1.0 gtkglext-x11-1.0
2009-12-16 12:59:43 -05:00
2010-11-15 18:22:07 -05:00
LIB_DEPENDS= x11/gtkglext
RUN_DEPENDS= graphics/netpbm
WRKDIST= ${WRKDIR}/gamgi${V}/
WRKSRC= ${WRKDIST}/src/
MAKE_FILE= ${WRKSRC}/makefile
2010-01-11 07:05:39 -05:00
ALL_TARGET= # This comment intentionally left senseless.
2013-03-11 07:02:49 -04:00
NO_TEST= Yes
DOC_DIR= ${PREFIX}/share/doc/gamgi/
DATA_DIR= ${PREFIX}/share/gamgi/
pre-configure:
2009-12-16 12:59:43 -05:00
${SUBST_CMD} ${WRKSRC}/make_local ${WRKSRC}/io/gamgi_io.h
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gamgi ${PREFIX}/bin
${INSTALL_DATA_DIR} ${DOC_DIR} ${DATA_DIR}
${INSTALL_DATA} ${WRKDIST}/dat/all.xml ${PREFIX}/share/gamgi
2010-07-05 04:30:46 -04:00
# Clean an empty directory.
2010-01-11 07:28:42 -05:00
rm -fr ${WRKDIST}/dat/util/python/
cd ${WRKDIST}/doc/ && umask 022 && pax -rw . ${DOC_DIR}
cd ${WRKDIST}/dat/ && umask 022 && pax -rw . ${DATA_DIR}
.include <bsd.port.mk>