aboutsummaryrefslogtreecommitdiff
path: root/mail/althea/files/Makefile.bsd
diff options
context:
space:
mode:
authorMikhail Teterin <mi@FreeBSD.org>2001-02-26 21:05:19 +0000
committerMikhail Teterin <mi@FreeBSD.org>2001-02-26 21:05:19 +0000
commitbb297d17af9957c52f93b1fe47676a23e2b33eef (patch)
treeaa70ad68088ece658dad16ac686db067f8dd5743 /mail/althea/files/Makefile.bsd
parentb24ad43f2ce5937f9d7df71528521ea2f07ee66e (diff)
downloadports-bb297d17af9957c52f93b1fe47676a23e2b33eef.tar.gz
ports-bb297d17af9957c52f93b1fe47676a23e2b33eef.zip
Notes
Diffstat (limited to 'mail/althea/files/Makefile.bsd')
-rw-r--r--mail/althea/files/Makefile.bsd34
1 files changed, 34 insertions, 0 deletions
diff --git a/mail/althea/files/Makefile.bsd b/mail/althea/files/Makefile.bsd
new file mode 100644
index 000000000000..cec0ff6108b5
--- /dev/null
+++ b/mail/althea/files/Makefile.bsd
@@ -0,0 +1,34 @@
+PROG= althea
+NOMAN= forget it :(
+
+objs!= ${MAKE} -V OBJS -f ${.CURDIR}/Makefile
+SRCS:= ${objs:.o=.cpp} main.cpp
+
+BINDIR=${LOCALBASE}/bin
+DOCDIR=${LOCALBASE}/share/doc/${PROG}
+PIXDIR=${LOCALBASE}/share/${PROG}
+
+# Compiled-in pathes:
+CXXFLAGS+=-DDOCDIR=\"${DOCDIR}\" -DPIXDIR=\"${PIXDIR}\"
+
+# Use the GTK's CFLAGS:
+CXXFLAGS+=-I${LOCALBASE}/include/gtk12 -I${LOCALBASE}/include/glib12 \
+ -I${LOCALBASE}/include -I${LOCALBASE}/include
+
+# Use the GTK's libraries:
+LDADD+= -L${LOCALBASE}/lib -L${X11BASE}/lib -lgtk12 -lgdk12 \
+ -Wl,-E -lgmodule12 -lglib12 -lintl -lxpg4 -lXext -lX11 -lm
+
+# A hack to ensure C++ is called to do the final linking:
+CC:= ${CXX}
+
+${DOCDIR}/images ${PIXDIR}:
+ ${MKDIR} $@
+
+beforeinstall: ${DOCDIR}/images ${PIXDIR}
+ ${INSTALL_DATA} ${.CURDIR}/Documentation/*.* ${DOCDIR}
+ ${INSTALL_DATA} ${.CURDIR}/Documentation/images/*.* ${DOCDIR}/images
+ ${INSTALL_DATA} ${.CURDIR}/pixmaps/*.* ${PIXDIR}
+ ${INSTALL_DATA} ${.CURDIR}/althearc.example ${LOCALBASE}/etc/
+
+.include <bsd.prog.mk>