SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
74
net/mldonkey/patches/patch-config_Makefile_in
Normal file
74
net/mldonkey/patches/patch-config_Makefile_in
Normal file
|
@ -0,0 +1,74 @@
|
|||
Index: config/Makefile.in
|
||||
--- config/Makefile.in.orig
|
||||
+++ config/Makefile.in
|
||||
@@ -13,6 +13,9 @@ changequote([[, ]])
|
||||
|
||||
include config/Makefile.config
|
||||
|
||||
+OCAMLC:=$(OCAMLC) -unsafe-string
|
||||
+OCAMLOPT:=$(OCAMLOPT) -unsafe-string
|
||||
+
|
||||
ifneq ("$(GLIBC_VERSION)" , "")
|
||||
GLIBC_VERSION_ARCH = "_glibc-"$(GLIBC_VERSION)
|
||||
endif
|
||||
@@ -93,7 +96,7 @@ SRC_FILETP=src/networks/fileTP
|
||||
SUBDIRS=$(EXTLIB) $(CDK) $(BITSTRING) $(LIB) $(RSS) $(XML) $(NET) tools \
|
||||
$(COMMON) $(DRIVER) $(MP3) src/config/$(OS_FILES)
|
||||
|
||||
-INCLUDES += $(foreach file, $(SUBDIRS), -I $(file)) -I +camlp4
|
||||
+INCLUDES += $(foreach file, $(SUBDIRS), -I $(file)) -I +camlp4 -I +num
|
||||
|
||||
CFLAGS:=$(CFLAGS) $(CONFIG_INCLUDES) $(GTKCFLAGS) $(GD_CFLAGS)
|
||||
|
||||
@@ -124,7 +127,7 @@ endif
|
||||
|
||||
#######################################################################
|
||||
|
||||
-LIBS_flags += -ccopt "$(LDFLAGS) $(CPPFLAGS)" -cclib "$(LIBS)"
|
||||
+LIBS_flags += -ccopt "$(LDFLAGS) $(CPPFLAGS)" -cclib "$(LIBS)" -I +num
|
||||
|
||||
ifeq ("$(OS_FILES2)", "mingw")
|
||||
LIBS_flags += -cclib "-lws2_32 -lgdi32 -luser32 -ladvapi32 -lwsock32 -limm32 -lshell32 -lole32 resfile.o"
|
||||
@@ -633,6 +636,8 @@ uninstall::
|
||||
rm -f $(BINDIR)/mlnet
|
||||
rm -f $(BINDIR)/mlgui
|
||||
|
||||
+ifeq ("$(OCAML_NATIVE)", "yes")
|
||||
+
|
||||
install:: opt
|
||||
mkdir -p $(DESTDIR)$(prefix)/bin
|
||||
if test -f mlnet; then \
|
||||
@@ -652,7 +657,22 @@ install:: opt
|
||||
done; \
|
||||
fi
|
||||
|
||||
+else
|
||||
|
||||
+install::
|
||||
+ cp -f mlnet.byte $(DESTDIR)$(prefix)/bin/mlnet
|
||||
+ for link in mlslsk mldonkey mlgnut mldc mlbt; do \
|
||||
+ ln -s mlnet $(DESTDIR)$(prefix)/bin/$$link; \
|
||||
+ done
|
||||
+ cp -f mlgui.byte $(DESTDIR)$(prefix)/bin/mlgui
|
||||
+ ln -s mlgui $(DESTDIR)$(prefix)/bin/mldonkey_gui
|
||||
+ cp -f mlnet+gui.byte $(DESTDIR)$(prefix)/bin/mlnet+gui
|
||||
+ for link in mlslsk+gui mldonkey+gui mlgnut+gui mldc+gui mlbt+gui; do \
|
||||
+ ln -s mlnet+gui $(DESTDIR)$(prefix)/bin/$$link; \
|
||||
+ done
|
||||
+
|
||||
+endif
|
||||
+
|
||||
ifneq ("$(GUI)" , "no")
|
||||
ifeq ("$(GUI)", "newgui2")
|
||||
SUBDIRS += $(SRC_GUI) $(SRC_GUI)/x11 $(SRC_GUI)/win32 $(ICONS_CHOICE) +lablgtk2
|
||||
@@ -1547,8 +1567,8 @@ $(ZOGSOURCES): pa_zog.cma
|
||||
$(MLTSOURCES): $(OCAMLPP)
|
||||
#$(TMPSOURCES): $(OCAMLPP)
|
||||
|
||||
-#ocamlpp.byte: tools/ocamlpp.ml
|
||||
-# $(OCAMLC) str.cma -o ocamlpp.byte tools/ocamlpp.ml
|
||||
+ocamlpp.byte: tools/ocamlpp.ml
|
||||
+ $(OCAMLC) str.cma -o ocamlpp.byte tools/ocamlpp.ml
|
||||
|
||||
ifeq ("$(GUI_CODE)", "OLDGUI")
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue