You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
8f7d8939ea
By minimizing patch files and changing the behavior of the various subports in the Portfile, it will hopefully be easier not only to see what is happening but also to change it if necessary. Revbump is needed since full use of MacPorts flags via makefile PG can change the installed files.
38 lines
1.1 KiB
Diff
38 lines
1.1 KiB
Diff
--- src/Makefile.orig 2023-02-10 19:14:10
|
|
+++ src/Makefile 2023-02-11 01:27:02
|
|
@@ -43,7 +43,7 @@
|
|
LUAC_O= luac.o
|
|
|
|
ALL_O= $(BASE_O) $(LUA_O) $(LUAC_O)
|
|
-ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
|
|
+ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(MACPORTS_SHARED_LIB)
|
|
ALL_A= $(LUA_A)
|
|
|
|
# Targets start here.
|
|
@@ -55,15 +55,21 @@
|
|
|
|
a: $(ALL_A)
|
|
|
|
+%.dylib: $(BASE_O)
|
|
+ $(CC) -o $@ -dynamiclib $(LDFLAGS) $^ -install_name $(MACPORTS_PREFIX)/lib/$(MACPORTS_SHARED_LIB) -compatibility_version $(MACPORTS_BRANCH) -current_version $(MACPORTS_VERSION)
|
|
+
|
|
+%.so: $(BASE_O)
|
|
+ $(CC) -o $@ -shared $(LDFLAGS) $^ -ldl -lm -Wl,-soname,$(MACPORTS_SHARED_LIB)
|
|
+
|
|
$(LUA_A): $(BASE_O)
|
|
$(AR) $@ $(BASE_O)
|
|
$(RANLIB) $@
|
|
|
|
-$(LUA_T): $(LUA_O) $(LUA_A)
|
|
- $(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
|
|
+$(LUA_T): $(LUA_O) $(MACPORTS_SHARED_LIB)
|
|
+ $(CC) -o $@ $(LDFLAGS) $(LUA_O) $(MACPORTS_SHARED_LIB) $(LIBS)
|
|
|
|
-$(LUAC_T): $(LUAC_O) $(LUA_A)
|
|
- $(CC) -o $@ $(LDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)
|
|
+$(LUAC_T): $(LUAC_O) $(MACPORTS_SHARED_LIB)
|
|
+ $(CC) -o $@ $(LDFLAGS) $(LUAC_O) $(MACPORTS_SHARED_LIB) $(LIBS)
|
|
|
|
clean:
|
|
$(RM) $(ALL_T) $(ALL_O)
|