aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2016-02-05 20:15:36 +0800
committermarino <marino@FreeBSD.org>2016-02-05 20:15:36 +0800
commit76ff47391f8ec862b4f7f28f214d2d735907583a (patch)
treedb15b46d15f6801e1487ada4e964c3e169c2a253
parent61a346faabeccd585ed672f0f280e8bcdef9a837 (diff)
downloadfreebsd-ports-gnome-76ff47391f8ec862b4f7f28f214d2d735907583a.tar.gz
freebsd-ports-gnome-76ff47391f8ec862b4f7f28f214d2d735907583a.tar.zst
freebsd-ports-gnome-76ff47391f8ec862b4f7f28f214d2d735907583a.zip
net/boinc_curses: USES+= ncurses, respect LDFLAGS
-rw-r--r--net/boinc_curses/Makefile2
-rw-r--r--net/boinc_curses/files/patch-Makefile11
2 files changed, 12 insertions, 1 deletions
diff --git a/net/boinc_curses/Makefile b/net/boinc_curses/Makefile
index a213bf38ccf7..dab6b667f098 100644
--- a/net/boinc_curses/Makefile
+++ b/net/boinc_curses/Makefile
@@ -12,7 +12,7 @@ COMMENT= Console, ncurses based monitor and manager for BOINC
BUILD_DEPENDS= ${LOCALBASE}/lib/libboinc.a:${PORTSDIR}/net/boinc-client
-USES= tar:bzip2
+USES= ncurses tar:bzip2
MAKE_ENV= BOINCLIBDIR=${LOCALBASE}/lib BOINCINCDIR=${LOCALBASE}/include/boinc
PLIST_FILES= bin/boinc_curses
diff --git a/net/boinc_curses/files/patch-Makefile b/net/boinc_curses/files/patch-Makefile
new file mode 100644
index 000000000000..5c8a3e453084
--- /dev/null
+++ b/net/boinc_curses/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.orig 2012-04-15 11:30:05 UTC
++++ Makefile
+@@ -7,7 +7,7 @@ BOINC_HOME?= /var/db/boinc
+ all: boinc_curses
+
+ boinc_curses: boinc_curses.c
+- ${CXX} -o boinc_curses boinc_curses.c -lncurses ${BOINCLIBDIR}/libboinc.a -I${BOINCINCDIR} -DBOINC_HOME=\"${BOINC_HOME}\" -Wall ${CFLAGS}
++ ${CXX} -o boinc_curses boinc_curses.c $(LDFLAGS) -lncurses ${BOINCLIBDIR}/libboinc.a -I${BOINCINCDIR} -DBOINC_HOME=\"${BOINC_HOME}\" -Wall ${CFLAGS}
+
+ clean:
+ -@rm boinc_curses