aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/rexx-curl
diff options
context:
space:
mode:
authoraz <az@FreeBSD.org>2013-06-10 20:26:23 +0800
committeraz <az@FreeBSD.org>2013-06-10 20:26:23 +0800
commit7aee3020bc1899d2cf48ef83ca4ad1ab0ab77182 (patch)
tree12d4d8d0dc4486fb90d540f103ec92d06b50743a /ftp/rexx-curl
parente93d34c684691866f2ff5fdfafc9c90ed8fd3bfa (diff)
downloadfreebsd-ports-gnome-7aee3020bc1899d2cf48ef83ca4ad1ab0ab77182.tar.gz
freebsd-ports-gnome-7aee3020bc1899d2cf48ef83ca4ad1ab0ab77182.tar.zst
freebsd-ports-gnome-7aee3020bc1899d2cf48ef83ca4ad1ab0ab77182.zip
- Fix build
- Trim Makefile - NOPORTDOCS -> PORT_OPTIONS:MDOCS PR: ports/179439 Submitted by: John Marino <draco@marino.st>
Diffstat (limited to 'ftp/rexx-curl')
-rw-r--r--ftp/rexx-curl/Makefile14
-rw-r--r--ftp/rexx-curl/files/patch-configure16
2 files changed, 21 insertions, 9 deletions
diff --git a/ftp/rexx-curl/Makefile b/ftp/rexx-curl/Makefile
index dbbdb73d144e..8281a668d5c6 100644
--- a/ftp/rexx-curl/Makefile
+++ b/ftp/rexx-curl/Makefile
@@ -1,10 +1,5 @@
-# ex:ts=8
-# Ports collection makefile for: rexx-curl
-# Date created: Nov 11, 2003
-# Whom: ijliao
-#
+# Created by: ijliao
# $FreeBSD$
-#
PORTNAME= curl
PORTVERSION= 1.4
@@ -18,10 +13,9 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= External function package providing an interface to the cURL package
BUILD_DEPENDS= rexx:${PORTSDIR}/lang/rexx-regina
-LIB_DEPENDS= curl.6:${PORTSDIR}/ftp/curl
+LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl
RUN_DEPENDS= rexx:${PORTSDIR}/lang/rexx-regina
-BROKEN= fails to build
USE_GMAKE= yes
GNU_CONFIGURE= yes
CPPFLAGS+= ${PTHREAD_CFLAGS}
@@ -32,12 +26,14 @@ USE_LDCONFIG= yes
DOCSDIR= ${PREFIX}/share/doc/rexx${PORTNAME}
DATADIR= ${PREFIX}/share/rexx${PORTNAME}
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -e "s| -lc | |g" -e "/\$(sharedir)\/images/d" \
-e "/index.html/d" -e "/rxcurl64.png/d" ${WRKSRC}/Makefile.in
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/index.html ${DOCSDIR}
@${MKDIR} ${DOCSDIR}/images
diff --git a/ftp/rexx-curl/files/patch-configure b/ftp/rexx-curl/files/patch-configure
new file mode 100644
index 000000000000..2c99ea09c5a9
--- /dev/null
+++ b/ftp/rexx-curl/files/patch-configure
@@ -0,0 +1,16 @@
+--- configure.orig 2005-07-28 11:01:07.000000000 +0000
++++ configure
+@@ -6240,8 +6240,12 @@ case "$target" in
+ LD_RXLIB1="${CC} -shared"
+ LD_RXTRANSLIB1="$LD_RXLIB1"
+ ;;
++ *dragonfly*)
++ LD_RXLIB1="${CC} -shared"
++ LD_RXTRANSLIB1="$LD_RXLIB1"
++ ;;
+ *freebsd*)
+- LD_RXLIB1="ld -Bdynamic -Bshareable"
++ LD_RXLIB1="${CC} -shared"
+ LD_RXTRANSLIB1="$LD_RXLIB1"
+ ;;
+ *pc-sco*)