summaryrefslogtreecommitdiff
path: root/www/aws
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2011-03-02 10:14:31 +0000
committerdrochner <drochner@pkgsrc.org>2011-03-02 10:14:31 +0000
commitbb64ab99919ec3f764eb48bf53f03fe4cc46cf88 (patch)
tree24076d0e65845e60c06f5e3a586cc43b377234d8 /www/aws
parent61266585025ae5c9f2f97f4e972edce3b72cf5ac (diff)
downloadpkgsrc-bb64ab99919ec3f764eb48bf53f03fe4cc46cf88.tar.gz
-disable the "pre-configure" step which turned out to be unnecessary
and could cause problems when building as non-root, from John Marino -put the build of demo programs (which was optionally, not switched on per default) into its own pkg, to avoid builds in the "install" phase and conditional PLIST entries -misc cleanup, fix a DESTDIR glitch
Diffstat (limited to 'www/aws')
-rw-r--r--www/aws/Makefile23
-rw-r--r--www/aws/PLIST8
-rw-r--r--www/aws/buildlink3.mk16
-rw-r--r--www/aws/distinfo4
-rw-r--r--www/aws/options.mk71
-rw-r--r--www/aws/patches/patch-ba22
6 files changed, 53 insertions, 91 deletions
diff --git a/www/aws/Makefile b/www/aws/Makefile
index 0d4034873cb..511af3826d7 100644
--- a/www/aws/Makefile
+++ b/www/aws/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2011/02/11 16:48:52 drochner Exp $
+# $NetBSD: Makefile,v 1.2 2011/03/02 10:14:31 drochner Exp $
#
DISTNAME= aws-${AWS_VERSION}
@@ -26,9 +26,6 @@ post-wrapper:
# avoid potential linkage problems
${RM} ${WRKDIR}/.wrapper/bin/*
-pre-configure:
- gprconfig --batch --config=Ada --config=C --config="Project File"
-
do-configure:
cd ${WRKSRC} && ${SETENV} CC=gnatgcc \
${GMAKE} setup ${CONFIGURE_ARGS}
@@ -42,24 +39,6 @@ do-test: install
do-install:
cd ${WRKSRC} && ${SETENV} ${INSTALL_ENV} ${GMAKE} install
${TOUCH} ${DESTDIR}${PREFIX}/share/examples/aws/bin/IGNORE.ME
-.if !empty (BUILD_DEMOS)
- ${MAKE} demos
- ${MAKE} demos-install
-.endif
-
-demos:
-.for dd in ${DEMO_DIRS}
- cd ${WRKSRC}/demos/${dd} && ${GMAKE}
-.endfor
-
-demos-install:
-.if !empty (BUILD_DEMOS)
- ${MKDIR} ${DESTDIR}${PREFIX}/share/examples/aws/demos
-.for dd in ${DEMO_DIRS}
- ${FIND} ${WRKSRC}/demos/${dd} -type f -perm -0001 \
- -exec ${INSTALL} {} ${DESTDIR}${PREFIX}/share/examples/aws/demos/ \;
-.endfor
-.endif
.include "../../devel/zlib/buildlink3.mk"
.include "../../devel/gnatpython/buildlink3.mk"
diff --git a/www/aws/PLIST b/www/aws/PLIST
index 86a88b11ca3..aac93f8e224 100644
--- a/www/aws/PLIST
+++ b/www/aws/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2011/02/11 16:48:53 drochner Exp $
+@comment $NetBSD: PLIST,v 1.2 2011/03/02 10:14:31 drochner Exp $
bin/aws_password
bin/awsres
bin/templates2ada
@@ -364,7 +364,8 @@ lib/aws/native/relocatable/aws-net-poll_events.ali
lib/aws/native/relocatable/aws-net-sets.ali
lib/aws/native/relocatable/aws-net-ssl-certificate__dummy.ali
lib/aws/native/relocatable/aws-net-ssl__dummy.ali
-lib/aws/native/relocatable/aws-net-std__gnat.ali
+${PLIST.noipv6}lib/aws/native/relocatable/aws-net-std__gnat.ali
+${PLIST.ipv6}lib/aws/native/relocatable/aws-net-std__ipv6.ali
lib/aws/native/relocatable/aws-net-stream_io.ali
lib/aws/native/relocatable/aws-net-thin.ali
lib/aws/native/relocatable/aws-net.ali
@@ -525,7 +526,8 @@ lib/aws/native/static/aws-net-poll_events.ali
lib/aws/native/static/aws-net-sets.ali
lib/aws/native/static/aws-net-ssl-certificate__dummy.ali
lib/aws/native/static/aws-net-ssl__dummy.ali
-lib/aws/native/static/aws-net-std__gnat.ali
+${PLIST.noipv6}lib/aws/native/static/aws-net-std__gnat.ali
+${PLIST.ipv6}lib/aws/native/static/aws-net-std__ipv6.ali
lib/aws/native/static/aws-net-stream_io.ali
lib/aws/native/static/aws-net-thin.ali
lib/aws/native/static/aws-net.ali
diff --git a/www/aws/buildlink3.mk b/www/aws/buildlink3.mk
new file mode 100644
index 00000000000..5fb410b5d46
--- /dev/null
+++ b/www/aws/buildlink3.mk
@@ -0,0 +1,16 @@
+# $NetBSD: buildlink3.mk,v 1.1 2011/03/02 10:14:31 drochner Exp $
+
+BUILDLINK_TREE+= aws
+
+.if !defined(AWS_BUILDLINK3_MK)
+AWS_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.aws+= aws>=2.10.0.1
+BUILDLINK_PKGSRCDIR.aws?= ../../www/aws
+
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../devel/gnatpython/buildlink3.mk"
+.include "../../devel/gprbuild-aux/buildlink3.mk"
+.endif # AWS_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -aws
diff --git a/www/aws/distinfo b/www/aws/distinfo
index 755f410262c..886f4937cf5 100644
--- a/www/aws/distinfo
+++ b/www/aws/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1.1.1 2011/02/11 16:48:52 drochner Exp $
+$NetBSD: distinfo,v 1.2 2011/03/02 10:14:31 drochner Exp $
SHA1 (aws-2.10.0.1.tar.bz2) = 3ea20d4328951089f93caa3693eb24d67cf76594
RMD160 (aws-2.10.0.1.tar.bz2) = 8d6c2e9e681f18b16bbd79e76e6b65bb8f07a871
@@ -6,7 +6,7 @@ Size (aws-2.10.0.1.tar.bz2) = 1386481 bytes
SHA1 (patch-ac) = 1985aca4185538590cea3d939f095b69495eb0fa
SHA1 (patch-ad) = 6bfa89f2837cc0dca4f5c391b7e05e74a3d85181
SHA1 (patch-ae) = 44f66219a999b90d626f8f581942ae4f406e6c18
-SHA1 (patch-ba) = 62e5a370d44eeeca7a9ee9e50445d20242808631
+SHA1 (patch-ba) = 334c40657793f0a6bcec295cc07329ca96bc8372
SHA1 (patch-bb) = e2db43dd317b01b9d0e97c481b2851b19469667b
SHA1 (patch-bc) = b4f9926351a0ab3c5e5c73601093266f0d8efaaa
SHA1 (patch-bd) = b640a61fe75e9bfd06ea6a546ba827a71631517c
diff --git a/www/aws/options.mk b/www/aws/options.mk
index 93c51dd366d..8e7ef2fb126 100644
--- a/www/aws/options.mk
+++ b/www/aws/options.mk
@@ -1,25 +1,25 @@
-# $NetBSD: options.mk,v 1.1.1.1 2011/02/11 16:48:52 drochner Exp $
+# $NetBSD: options.mk,v 1.2 2011/03/02 10:14:31 drochner Exp $
# xmlada is built-in (not optional) due to gprbuild dependency
# zlib is built-in because it's mandatory. It even comes with AWS.
# ASIS is not supported right now (custom build, requires part of GNAT)
+# The "ipv6" option effectively disabled IPv4 support, so it
+# should not be switched on per default even on systems which
+# support IPv6. For that reason, the option name is not "inet6".
+
PKG_OPTIONS_VAR= PKG_OPTIONS.aws
-PKG_SUPPORTED_OPTIONS= ssl demos ldap ipv6 debug disable-shared-rt relocatable
+PKG_SUPPORTED_OPTIONS= ssl ldap ipv6 debug disable-shared-rt relocatable
PKG_SUGGESTED_OPTIONS= ssl
-
.include "../../mk/bsd.prefs.mk"
.include "../../mk/bsd.options.mk"
-
CONFIGURE_ARGS+= GCC=gnatgcc
CONFIGURE_ARGS+= PROCESSORS=1
CONFIGURE_ARGS+= PYTHON=python2.6
DOTBUILD= release
-DEMO_DIRS=
-
# The system libgcc is from version 4.1 which doesn't include the symbol
# _Unwind_GetIPInfo. If AWS uses the system zlib or if it's configured to use
@@ -35,7 +35,6 @@ DEMO_DIRS=
CONFIGURE_ARGS+= ZLIB=false
.endif
-
###################
## SSL Support ##
###################
@@ -49,71 +48,27 @@ CONFIGURE_ARGS+= SOCKET=openssl
.endif
.endif
-
-
####################
## LDAP Support ##
####################
.if !empty(PKG_OPTIONS:Mldap)
CONFIGURE_ARGS+= LDAP=true
-DEPENDS+= openldap>=2.4:/../../databases/openldap
-.endif
-
-
-
-#####################
-## DEMOS Support ##
-#####################
-
-.if !empty(PKG_OPTIONS:Mdemos)
-BUILD_DEMOS= YES
-
-DEMO_DIRS+= agent
-DEMO_DIRS+= auth
-DEMO_DIRS+= com
-DEMO_DIRS+= dispatch
-DEMO_DIRS+= hello_world
-DEMO_DIRS+= hello_wsdl
-DEMO_DIRS+= hotplug
-DEMO_DIRS+= interoplab
-DEMO_DIRS+= jabber_demo
-DEMO_DIRS+= multiple_sessions
-DEMO_DIRS+= res_demo
-DEMO_DIRS+= runme
-DEMO_DIRS+= soap_demo
-DEMO_DIRS+= soap_disp
-DEMO_DIRS+= soap_vs
-DEMO_DIRS+= split
-DEMO_DIRS+= test_mail
-DEMO_DIRS+= text_input
-DEMO_DIRS+= vh_demo
-DEMO_DIRS+= web_block
-DEMO_DIRS+= web_block_ajax
-DEMO_DIRS+= web_block_ajax_templates
-DEMO_DIRS+= web_elements
-DEMO_DIRS+= web_mail
-DEMO_DIRS+= wps
-DEMO_DIRS+= ws
-DEMO_DIRS+= zdemo
-
-.if !empty(PKG_OPTIONS:Mldap)
-DEMO_DIRS+= test_ldap
-.endif
+DEPENDS+= openldap>=2.4:../../databases/openldap
.endif
-
-
####################
## IPv6 Support ##
####################
+PLIST_VARS+= ipv6 noipv6
.if !empty(PKG_OPTIONS:Mipv6)
CONFIGURE_ARGS+= IPv6=true
+PLIST.ipv6= yes
+.else
+PLIST.noipv6= yes
.endif
-
-
#####################
## Debug Support ##
#####################
@@ -123,8 +78,6 @@ CONFIGURE_ARGS+= DEBUG=true
DOTBUILD=debug
.endif
-
-
##############################
## Shared Runtime Library ##
##############################
@@ -133,8 +86,6 @@ DOTBUILD=debug
CONFIGURE_ARGS+= ENABLE_SHARED=false
.endif
-
-
############################
## Default Library Type ##
############################
diff --git a/www/aws/patches/patch-ba b/www/aws/patches/patch-ba
index 0dc39c79ee8..a5694d7ea5a 100644
--- a/www/aws/patches/patch-ba
+++ b/www/aws/patches/patch-ba
@@ -1,9 +1,23 @@
-$NetBSD: patch-ba,v 1.1.1.1 2011/02/11 16:48:53 drochner Exp $
+$NetBSD: patch-ba,v 1.2 2011/03/02 10:14:31 drochner Exp $
---- makefile.orig 2011-02-10 19:28:41.000000000 +0000
+--- makefile.orig 2011-01-25 20:53:19.000000000 +0000
+++ makefile
-@@ -424,38 +424,38 @@ install_clean:
- $(RM) -f $(I_GPR)/aws.gpr
+@@ -416,46 +416,46 @@ setup_tp:
+ $(MAKE) -C templates_parser setup $(GALL_OPTIONS)
+
+ install_clean:
+- $(RM) -fr $(I_INC)/$(PLATFORM)
+- $(RM) -fr $(I_LIB)
+- $(RM) -fr $(I_AGP)
+- $(RM) -fr $(prefix)/share/examples/aws
+- $(RM) -fr $(I_DOC)
+- $(RM) -f $(I_GPR)/aws.gpr
++ $(RM) -fr $(DESTDIR)$(I_INC)/$(PLATFORM)
++ $(RM) -fr $(DESTDIR)$(I_LIB)
++ $(RM) -fr $(DESTDIR)$(I_AGP)
++ $(RM) -fr $(DESTDIR)$(prefix)/share/examples/aws
++ $(RM) -fr $(DESTDIR)$(I_DOC)
++ $(RM) -f $(DESTDIR)$(I_GPR)/aws.gpr
install_dirs: install_clean
- $(MKDIR) -p $(I_BIN)