View | Details | Raw Unified | Return to bug 232138
Collapse All | Expand All

(-)Makefile (-5 / +5 lines)
Lines 1-7 Link Here
1
# $FreeBSD$
1
# $FreeBSD$
2
2
3
PORTNAME=	duktape
3
PORTNAME=	duktape
4
DISTVERSION=	2.2.1
4
DISTVERSION=	2.3.0
5
CATEGORIES=	lang devel
5
CATEGORIES=	lang devel
6
MASTER_SITES=	http://duktape.org/
6
MASTER_SITES=	http://duktape.org/
7
PKGNAMESUFFIX=	-lib
7
PKGNAMESUFFIX=	-lib
Lines 12-18 Link Here
12
LICENSE=	MIT
12
LICENSE=	MIT
13
LICENSE_FILE=	${WRKSRC}/LICENSE.txt
13
LICENSE_FILE=	${WRKSRC}/LICENSE.txt
14
14
15
USES=		tar:xz
15
USES=		gmake tar:xz
16
USE_LDCONFIG=	yes
16
USE_LDCONFIG=	yes
17
17
18
MAKEFILE=	Makefile.sharedlibrary
18
MAKEFILE=	Makefile.sharedlibrary
Lines 21-29 Link Here
21
	${INSTALL_DATA} ${WRKSRC}/src/duktape.h ${STAGEDIR}${PREFIX}/include
21
	${INSTALL_DATA} ${WRKSRC}/src/duktape.h ${STAGEDIR}${PREFIX}/include
22
	${INSTALL_DATA} ${WRKSRC}/src/duk_config.h ${STAGEDIR}${PREFIX}/include
22
	${INSTALL_DATA} ${WRKSRC}/src/duk_config.h ${STAGEDIR}${PREFIX}/include
23
.for l in libduktape.so libduktaped.so
23
.for l in libduktape.so libduktaped.so
24
	${INSTALL_LIB} ${WRKSRC}/${l}.202.20201 ${STAGEDIR}${PREFIX}/lib
24
	${INSTALL_LIB} ${WRKSRC}/${l}.203.20300 ${STAGEDIR}${PREFIX}/lib
25
	${RLN} ${STAGEDIR}${PREFIX}/lib/${l}.202.20201 ${STAGEDIR}${PREFIX}/lib/${l}
25
	${RLN} ${STAGEDIR}${PREFIX}/lib/${l}.203.20300 ${STAGEDIR}${PREFIX}/lib/${l}
26
	${RLN} ${STAGEDIR}${PREFIX}/lib/${l}.202.20201 ${STAGEDIR}${PREFIX}/lib/${l}.202
26
	${RLN} ${STAGEDIR}${PREFIX}/lib/${l}.203.20300 ${STAGEDIR}${PREFIX}/lib/${l}.203
27
.endfor
27
.endfor
28
28
29
.include <bsd.port.mk>
29
.include <bsd.port.mk>
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1524915862
1
TIMESTAMP = 1539089786
2
SHA256 (duktape-2.2.1.tar.xz) = 3abe2eed2553305262b892c98f550bb1a94cf4fd73b51dc5c176fe08e7ade7f2
2
SHA256 (duktape-2.3.0.tar.xz) = ed6e2f3ab2061628a7aeee27ccff16538ba6a151480cccf2e846bd061e45afe8
3
SIZE (duktape-2.2.1.tar.xz) = 966496
3
SIZE (duktape-2.3.0.tar.xz) = 997572
(-)files/patch-Makefile.sharedlibrary (-13 / +8 lines)
Lines 1-16 Link Here
1
--- Makefile.sharedlibrary.orig	2017-09-23 01:06:08 UTC
1
--- Makefile.sharedlibrary.orig	2018-10-09 12:58:18 UTC
2
+++ Makefile.sharedlibrary
2
+++ Makefile.sharedlibrary
3
@@ -44,11 +44,11 @@ all: libduktape.so.$(REAL_VERSION) libdu
3
@@ -52,7 +52,7 @@ INSTALL_PREFIX = /usr/local
4
 # to $INSTALL_PREFIX/include on installation.
4
 DUKTAPE_SRCDIR = ./src
5
 #DUKTAPE_SRCDIR = ./src-noline
5
 
6
 
6
 libduktape.so.$(REAL_VERSION):
7
-CC = gcc
7
-	gcc -shared -fPIC -Wall -Wextra -Os -Wl,-soname,libduktape.so.$(SONAME_VERSION) \
8
+CC = cc
8
+	$(CC) -shared $(CFLAGS) -fPIC -Wall -Wextra -Wl,-soname,libduktape.so.$(SONAME_VERSION) \
9
 		-o $@ $(DUKTAPE_SRCDIR)/duktape.c
10
 
9
 
11
 libduktaped.so.$(REAL_VERSION):
10
 .PHONY: all
12
-	gcc -shared -fPIC -g -Wall -Wextra -Os -Wl,-soname,libduktaped.so.$(SONAME_VERSION) \
11
 all: libduktape.$(SO_REALNAME_SUFFIX) libduktaped.$(SO_REALNAME_SUFFIX)
13
+	$(CC) -shared $(CFLAGS) -fPIC -Wall -Wextra -Wl,-soname,libduktaped.so.$(SONAME_VERSION) \
14
 		-o $@ $(DUKTAPE_SRCDIR)/duktape.c
15
 
16
 # Symlinks depend on platform conventions.
(-)pkg-plist (-4 / +4 lines)
Lines 1-8 Link Here
1
include/duk_config.h
1
include/duk_config.h
2
include/duktape.h
2
include/duktape.h
3
lib/libduktape.so
3
lib/libduktape.so
4
lib/libduktape.so.202
4
lib/libduktape.so.203
5
lib/libduktape.so.202.20201
5
lib/libduktape.so.203.20300
6
lib/libduktaped.so
6
lib/libduktaped.so
7
lib/libduktaped.so.202
7
lib/libduktaped.so.203
8
lib/libduktaped.so.202.20201
8
lib/libduktaped.so.203.20300

Return to bug 232138