mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-06 01:57:40 +00:00
3e4ed01146
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG - Remove X11BASE support in favor of LOCALBASE or PREFIX - Use USE_LDCONFIG instead of INSTALLS_SHLIB - Remove unneeded USE_GCC 3.4+ Thanks to all Helpers: Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr, ehaupt, nox, itetcu, flz, pav PR: 116263 Tested on: pointyhat Approved by: portmgr (pav)
65 lines
1.5 KiB
Makefile
65 lines
1.5 KiB
Makefile
# New ports collection makefile for: hgl
|
|
# Date created: 22 January 2002
|
|
# Whom: octaphial
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= hgl
|
|
PORTVERSION= 2.0.4
|
|
PORTREVISION= 4
|
|
CATEGORIES= graphics haskell
|
|
MASTER_SITES= http://haskell.org/graphics/downloads/
|
|
PKGNAMEPREFIX= hs-
|
|
DISTNAME= graphics-${PORTVERSION}.src
|
|
|
|
MAINTAINER= octaphial@yahoo.com
|
|
COMMENT= Graphics library for Hugs98, an implementation of Haskell 98
|
|
|
|
RUN_DEPENDS= hugs:${PORTSDIR}/lang/hugs
|
|
|
|
WRKSRC= ${WRKDIR}/graphics-${PORTVERSION}
|
|
USE_GMAKE= yes
|
|
USE_XORG= x11
|
|
|
|
HGL_LIBS= ${PREFIX}/lib/hugs/x11
|
|
HGL_DOCS= ${PREFIX}/share/doc/hs-hgl
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/lib/x11
|
|
MAKE_ARGS= system=FreeBSD \
|
|
hugs_install=${HGL_LIBS} \
|
|
X_dir=${LOCALBASE} \
|
|
CC=${CC}
|
|
ALL_TARGET= all
|
|
|
|
do-build:
|
|
@cd ${BUILD_WRKSRC}; ${GMAKE} ${MAKE_ARGS}
|
|
|
|
do-install:
|
|
${MKDIR} ${HGL_LIBS}
|
|
${MKDIR} ${HGL_LIBS}/demos
|
|
${INSTALL_DATA} ${WRKSRC}/lib/x11/*.hs ${HGL_LIBS}
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lib/x11/*.o ${HGL_LIBS}
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lib/x11/*.so ${HGL_LIBS}
|
|
${INSTALL_DATA} ${WRKSRC}/demos/* ${HGL_LIBS}/demos
|
|
${INSTALL_DATA} ${WRKSRC}/test/* ${HGL_LIBS}/demos
|
|
|
|
post-install:
|
|
${MKDIR} ${HGL_DOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/* ${HGL_DOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/License ${HGL_DOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/Readme ${HGL_DOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/Version ${HGL_DOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/Version-2.0.4 ${HGL_DOCS}
|
|
@${ECHO} ''
|
|
@${CAT} ${PKGMESSAGE}
|
|
@${ECHO} ''
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${MACHINE_ARCH:L} == "amd64"
|
|
MAKE_ARGS+= CFLAGS=-fPIC
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|