pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

belle-sip: make this get past the configure step



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <tk%giga.or.at@localhost>
Pushed By:	wiz
Date:		Wed Apr 15 10:14:59 2020 +0200
Changeset:	8f559baade8e28d4cd3ff940d0ff1f09a955a02a

Modified Files:
	belle-sip/DESCR
	belle-sip/Makefile
Added Files:
	belle-sip/TODO
	belle-sip/buildlink3.mk

Log Message:
belle-sip: make this get past the configure step

Doesn't build though:

/usr/pkg/java/openjdk11/bin/java -Xmx256m -jar /usr/pkg/share/java/classes/antlr.jar  -make -Xmultithreaded -Xconversiontimeout 10000 -fo  . ./belle_sip_message.g
no main manifest attribute, in /usr/pkg/share/java/classes/antlr.jar

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=8f559baade8e28d4cd3ff940d0ff1f09a955a02a

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 belle-sip/DESCR         |  3 ++-
 belle-sip/Makefile      | 12 +++++++++++-
 belle-sip/TODO          |  4 ++++
 belle-sip/buildlink3.mk | 14 ++++++++++++++
 4 files changed, 31 insertions(+), 2 deletions(-)

diffs:
diff --git a/belle-sip/DESCR b/belle-sip/DESCR
index a245211801..dd880e9908 100644
--- a/belle-sip/DESCR
+++ b/belle-sip/DESCR
@@ -1 +1,2 @@
-Belle-sip is a SIP (RFC3261) implementation written in C, with an object oriented API.
+Belle-sip is a SIP (RFC3261) implementation written in C, with an
+object oriented API.
diff --git a/belle-sip/Makefile b/belle-sip/Makefile
index e00fc52d54..2879b20c52 100644
--- a/belle-sip/Makefile
+++ b/belle-sip/Makefile
@@ -11,10 +11,20 @@ LICENSE=	gnu-gpl-v2
 
 GNU_CONFIGURE=	yes
 USE_LIBTOOL=	yes
-USE_TOOLS+=	pkg-config
+USE_TOOLS+=	gmake pkg-config
 USE_LANGUAGES=	c c++
 
+MAKE_JOBS_SAFE=	no
+
 PKGCONFIG_OVERRIDE+=	belle-sip.pc.in
 
+SUBST_CLASSES+=		jar
+SUBST_SED.jar+=		-e 's,/opt/local/share/java,${PREFIX}/share/java/classes,'
+SUBST_FILES.jar+=	configure
+SUBST_STAGE.jar=	pre-configure
+SUBST_MESSAGE.jar=	Fixing path to Java class.
+
+.include "../../wip/antlr/buildlink3.mk"
 .include "../../wip/antlr3-c/buildlink3.mk"
+.include "../../mk/java-vm.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/belle-sip/TODO b/belle-sip/TODO
new file mode 100644
index 0000000000..ab3f1e3535
--- /dev/null
+++ b/belle-sip/TODO
@@ -0,0 +1,4 @@
+Fails to build:
+
+/usr/pkg/java/openjdk11/bin/java -Xmx256m -jar /usr/pkg/share/java/classes/antlr.jar  -make -Xmultithreaded -Xconversiontimeout 10000 -fo  . ./belle_sip_message.g
+no main manifest attribute, in /usr/pkg/share/java/classes/antlr.jar
diff --git a/belle-sip/buildlink3.mk b/belle-sip/buildlink3.mk
new file mode 100644
index 0000000000..5064f0fab9
--- /dev/null
+++ b/belle-sip/buildlink3.mk
@@ -0,0 +1,14 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	belle-sip
+
+.if !defined(BELLE_SIP_BUILDLINK3_MK)
+BELLE_SIP_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.belle-sip+=	belle-sip>=1.4.2
+BUILDLINK_PKGSRCDIR.belle-sip?=		../../wip/belle-sip
+
+#.include "../../wip/antlr3-c/buildlink3.mk"
+.endif	# BELLE_SIP_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-belle-sip


Home | Main Index | Thread Index | Old Index