summaryrefslogtreecommitdiff
path: root/print/mupdf/patches/patch-Makethird
blob: 71204a634ac17219fff6ce5658b07caa63cae1b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
$NetBSD: patch-Makethird,v 1.3 2014/06/15 14:14:18 wiz Exp $

o mujs building support with libtool
o libcurl (www/curl) support. By default mupdf can be installed with curl
 support *only* building it in ${WRKSRC}/thirdparty.

--- Makethird.orig	2014-06-10 15:09:28.000000000 +0000
+++ Makethird
@@ -50,14 +50,14 @@ endif
 
 ifneq "$(wildcard $(MUJS_DIR)/README)" ""
 
-MUJS_LIB := $(OUT)/libmujs.a
+MUJS_LIB := $(OUT)/libmujs.la
 MUJS_OUT := $(OUT)/mujs
 MUJS_SRC := one.c
 
-$(MUJS_LIB): $(addprefix $(MUJS_OUT)/, $(MUJS_SRC:%.c=%.o))
+$(MUJS_LIB): $(addprefix $(MUJS_OUT)/, $(MUJS_SRC:%.c=%.lo))
 $(MUJS_OUT):
 	$(MKDIR_CMD)
-$(MUJS_OUT)/%.o: $(MUJS_DIR)/%.c | $(MUJS_OUT)
+$(MUJS_OUT)/%.lo: $(MUJS_DIR)/%.c | $(MUJS_OUT)
 	$(CC_CMD)
 
 MUJS_CFLAGS := -I$(MUJS_DIR)
@@ -460,6 +460,9 @@ CURL_CFLAGS := $(SYS_CURL_CFLAGS)
 CURL_LIBS := $(SYS_CURL_LIBS)
 endif
 
+CURL_CFLAGS := $(SYS_CURL_CFLAGS)
+CURL_LIBS := $(SYS_CURL_LIBS) $(SYS_CURL_DEPS)
+
 # --- X11 ---
 
 ifeq "$(HAVE_X11)" "yes"