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

(-)Makefile (-1 / +1 lines)
Lines 13-18 Link Here
13
13
14
LIB_DEPENDS=	expat.6:${PORTSDIR}/textproc/expat2
14
LIB_DEPENDS=	expat.6:${PORTSDIR}/textproc/expat2
15
15
16
USES=		gmake
16
MAKEFILE=	makefile
17
MAKEFILE=	makefile
17
ALL_TARGET=	lib
18
ALL_TARGET=	lib
18
USE_LUA=	5.0-5.1
19
USE_LUA=	5.0-5.1
Lines 21-27 Link Here
21
22
22
CFLAGS+=	-fPIC
23
CFLAGS+=	-fPIC
23
24
24
NO_STAGE=	yes
25
.include <bsd.port.pre.mk>
25
.include <bsd.port.pre.mk>
26
26
27
.if ${LUA_VER} == 5.0
27
.if ${LUA_VER} == 5.0
(-)files/patch-makefile (-8 / +22 lines)
Lines 1-6 Link Here
1
--- makefile.orig	2009-06-25 06:07:16.000000000 +0000
1
2
+++ makefile	2009-06-25 06:23:06.000000000 +0000
2
$FreeBSD$
3
@@ -4,15 +4,11 @@
3
4
--- makefile.orig
5
+++ makefile
6
@@ -4,10 +4,6 @@
4
 
7
 
5
 include $(CONFIG)
8
 include $(CONFIG)
6
 
9
 
Lines 11-19 Link Here
11
 OBJS= src/lxplib.o $(COMPAT_O)
14
 OBJS= src/lxplib.o $(COMPAT_O)
12
 lib: src/$(LIBNAME)
15
 lib: src/$(LIBNAME)
13
 
16
 
14
 src/$(LIBNAME) : $(OBJS)
17
@@ -18,11 +14,11 @@
15
-	export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) -o src/$(LIBNAME) $(LIB_OPTION) $(OBJS) -lexpat
18
 	$(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c
16
+	export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) -o src/$(LIBNAME) $(LIB_OPTION) lxplib.o $(COMPAT_O) -lexpat
17
 
19
 
18
 $(COMPAT_DIR)/compat-5.1.o: $(COMPAT_DIR)/compat-5.1.c
20
 install:
19
 	$(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c
21
-	mkdir -p $(LUA_LIBDIR)
22
-	cp src/$(LIBNAME) $(LUA_LIBDIR)
23
-	cd $(LUA_LIBDIR); ln -f -s $(LIBNAME) $T.so
24
-	mkdir -p $(LUA_DIR)/$T
25
-	cp src/$T/lom.lua $(LUA_DIR)/$T
26
+	mkdir -p $(DESTDIR)$(LUA_LIBDIR)
27
+	cp src/$(LIBNAME) $(DESTDIR)$(LUA_LIBDIR)
28
+	cd $(DESTDIR)$(LUA_LIBDIR); ln -f -s $(LIBNAME) $T.so
29
+	mkdir -p $(DESTDIR)$(LUA_DIR)/$T
30
+	cp src/$T/lom.lua $(DESTDIR)$(LUA_DIR)/$T
31
 
32
 clean:
33
 	rm -f src/$(LIBNAME) $(OBJS)

Return to bug 185899