mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
34fa6c853e
All ports depending on postgresql shall use the USE_PGSQL=yes knob defined in Mk/bsd.ports.mk. Bumping portrevisions where needed. PR: 75344 Approved by: portmgr@ (kris), ade & sean (mentors)
79 lines
1.7 KiB
Makefile
79 lines
1.7 KiB
Makefile
# New ports collection makefile for: hsql
|
|
# Date created: 2004-01-15
|
|
# Whom: obraun@FreeBSD.org
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= hsql
|
|
PORTVERSION= 1.4
|
|
PORTREVISION= 1
|
|
CATEGORIES= databases haskell
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= htoolkit
|
|
PKGNAMEPREFIX= hs-
|
|
DISTNAME= HSQL-${PORTVERSION}
|
|
|
|
MAINTAINER= haskell@FreeBSD.org
|
|
COMMENT= Haskell access to SQL
|
|
|
|
BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc
|
|
RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc
|
|
|
|
USE_PGSQL= yes
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
|
|
ALL_TARGET= all docs
|
|
.endif
|
|
|
|
WRKSRC= ${WRKDIR}/HSQL
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} --enable-postgres
|
|
CONFIGURE_ENV+= CFLAGS=-I${LOCALBASE}/include/postgresql/server \
|
|
CPPFLAGS=-I${LOCALBASE}/include/postgresql/server
|
|
USE_GMAKE= yes
|
|
MAKE_ENV+= DOCSDIR=${DOCSDIR}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if exists(${LOCALBASE}/bin/hugs)
|
|
WITH_HUGS= yes
|
|
.endif
|
|
|
|
.if defined(PACKAGE_BUILDING)
|
|
WITH_HUGS= yes
|
|
.endif
|
|
|
|
.if defined(WITH_HUGS)
|
|
BUILD_DEPENDS+= hugs:${PORTSDIR}/lang/hugs
|
|
RUN_DEPENDS+= hugs:${PORTSDIR}/lang/hugs
|
|
.endif
|
|
|
|
GHC_VERSION= `${LOCALBASE}/bin/ghc --numeric-version`
|
|
PLIST_SUB+= GHC_VERSION="${GHC_VERSION}"
|
|
|
|
.if defined(WITH_HUGS)
|
|
PLIST_SUB+= HUGS=""
|
|
.else
|
|
PLIST_SUB+= HUGS="@comment "
|
|
.endif
|
|
|
|
pre-everything::
|
|
@${ECHO_CMD} ""
|
|
@${ECHO_CMD} " HSQL will be installed for ghc."
|
|
@${ECHO_CMD} ""
|
|
.if defined(WITH_HUGS)
|
|
@${ECHO_CMD} " HSQL will be installed for hugs."
|
|
.else
|
|
@${ECHO_CMD} " Define WITH_HUGS to install HSQL for hugs."
|
|
.endif
|
|
@${ECHO_CMD} ""
|
|
|
|
post-install:
|
|
${MKDIR} ${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/hsql.pkg ${DATADIR}
|
|
@${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
|
|
|
|
.include <bsd.port.post.mk>
|