diff options
Diffstat (limited to 'mail/althea/files/Makefile.bsd')
-rw-r--r-- | mail/althea/files/Makefile.bsd | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/mail/althea/files/Makefile.bsd b/mail/althea/files/Makefile.bsd index cec0ff6108b5..84f6ced50a1a 100644 --- a/mail/althea/files/Makefile.bsd +++ b/mail/althea/files/Makefile.bsd @@ -4,20 +4,18 @@ 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} +BINDIR=${PREFIX}/bin +DOCDIR=${PREFIX}/share/doc/${PROG} +PIXDIR=${PREFIX}/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 +CXXFLAGS+=`${GTK_CONFIG} --cflags` # Use the GTK's libraries: -LDADD+= -L${LOCALBASE}/lib -L${X11BASE}/lib -lgtk12 -lgdk12 \ - -Wl,-E -lgmodule12 -lglib12 -lintl -lxpg4 -lXext -lX11 -lm +LDADD+=`${GTK_CONFIG} --libs` # A hack to ensure C++ is called to do the final linking: CC:= ${CXX} @@ -26,9 +24,9 @@ ${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/ + ${BSD_INSTALL_DATA} ${.CURDIR}/Documentation/*.* ${DOCDIR} + ${BSD_INSTALL_DATA} ${.CURDIR}/Documentation/images/*.* ${DOCDIR}/images + ${BSD_INSTALL_DATA} ${.CURDIR}/pixmaps/*.* ${PIXDIR} + ${BSD_INSTALL_DATA} ${.CURDIR}/althearc.example ${PREFIX}/etc/ .include <bsd.prog.mk> |