View | Details | Raw Unified | Return to bug 196456 | Differences between
and this patch

Collapse All | Expand All

(-)converters/libb64/Makefile (+2 lines)
Lines 19-24 BROKEN_powerpc= Does not compile on powerpc Link Here
19
19
20
do-install:
20
do-install:
21
	${INSTALL_DATA} ${WRKSRC}/src/libb64.a ${STAGEDIR}${PREFIX}/lib
21
	${INSTALL_DATA} ${WRKSRC}/src/libb64.a ${STAGEDIR}${PREFIX}/lib
22
	${INSTALL_LIB} ${WRKSRC}/src/libb64.so.0 ${STAGEDIR}${PREFIX}/lib
23
	(cd ${STAGEDIR}${PREFIX}/lib; ${LN} -fs libb64.so.0 libb64.so)
22
	@${MKDIR} ${STAGEDIR}${PREFIX}/include/b64
24
	@${MKDIR} ${STAGEDIR}${PREFIX}/include/b64
23
	${INSTALL_DATA} ${WRKSRC}/include/b64/*.h ${STAGEDIR}${PREFIX}/include/b64
25
	${INSTALL_DATA} ${WRKSRC}/include/b64/*.h ${STAGEDIR}${PREFIX}/include/b64
24
26
(-)converters/libb64/files/patch-shared-lib (+26 lines)
Line 0 Link Here
1
--- src/Makefile~
2
+++ src/Makefile
3
@@ -1,4 +1,4 @@
4
-LIBRARIES = libb64.a
5
+LIBRARIES = libb64.a libb64.so
6
 
7
 # Build flags (uncomment one)
8
 #############################
9
@@ -27,6 +27,17 @@ all: $(TARGETS) #strip
10
 libb64.a: cencode.o cdecode.o
11
 	$(AR) $(ARFLAGS) $@ $^
12
 
13
+SOVERSION ?= 0
14
+
15
+%.So: %.c
16
+	$(CC) -fPIC -c $(CFLAGS) $(CPPFLAGS) $< -o $@
17
+
18
+libb64.so.0: cencode.So cdecode.So
19
+	$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname,libb64.so.$(SOVERSION) -o $@ $^
20
+
21
+libb64.so: libb64.so.$(SOVERSION)
22
+	ln -fs $< $@
23
+
24
 strip:
25
 	strip $(BINARIES) *.exe
26
 
(-)converters/libb64/pkg-plist (+2 lines)
Lines 3-5 include/b64/cencode.h Link Here
3
include/b64/decode.h
3
include/b64/decode.h
4
include/b64/encode.h
4
include/b64/encode.h
5
lib/libb64.a
5
lib/libb64.a
6
lib/libb64.so
7
lib/libb64.so.0

Return to bug 196456