aboutsummaryrefslogtreecommitdiffstats
path: root/mail/moztraybiff
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2005-04-27 03:45:26 +0800
committeradamw <adamw@FreeBSD.org>2005-04-27 03:45:26 +0800
commit9fd27ca0024d02b4c0d7b85c97e0df78f45b9660 (patch)
tree0aebfdba34e07e6666f1bdbccda9fbac260a1462 /mail/moztraybiff
parentf670fae811492554b050bd1f39b78a2097974895 (diff)
downloadfreebsd-ports-gnome-9fd27ca0024d02b4c0d7b85c97e0df78f45b9660.tar.gz
freebsd-ports-gnome-9fd27ca0024d02b4c0d7b85c97e0df78f45b9660.tar.zst
freebsd-ports-gnome-9fd27ca0024d02b4c0d7b85c97e0df78f45b9660.zip
Apply a couple clean-ups.
- Ditch pkg-message/%%DATADIR%% substitutions in favour of SUB_FILES and files/pkg-message.in. - Remove a rather horrific shell command used to generate a list of include dirs for c++(1). I'm not sure why it works without the shell command... or more specifically, I'm not sure what caused me to write it in the first place. In any event, it builds cleanly here as-is. I'm sure Kris will happily inform me of the inevitable breakages. - Space the Makefile a bit better.
Diffstat (limited to 'mail/moztraybiff')
-rw-r--r--mail/moztraybiff/Makefile9
-rw-r--r--mail/moztraybiff/files/patch-components_Makefile14
-rw-r--r--mail/moztraybiff/files/pkg-message.in (renamed from mail/moztraybiff/pkg-message)0
3 files changed, 4 insertions, 19 deletions
diff --git a/mail/moztraybiff/Makefile b/mail/moztraybiff/Makefile
index 6c01549273d1..3241032fa480 100644
--- a/mail/moztraybiff/Makefile
+++ b/mail/moztraybiff/Makefile
@@ -34,6 +34,8 @@ MAKE_ARGS+= MOZILLA_PLATFORM=tbird
FILENAME= mozTrayBiff-${PORTVERSION}-FreeBSD-tb${TBVER}.xpi
PLIST_FILES= share/${PORTNAME}/${FILENAME}
PLIST_DIRS= share/${PORTNAME}
+
+SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
.include <bsd.port.pre.mk>
@@ -43,17 +45,14 @@ post-patch:
@${REINPLACE_CMD} -e "s|-fshort-wchar||" \
${WRKSRC}/components/Makefile
.endif
- @${REINPLACE_CMD} -e "s|%%TBVER%%|${TBVER}|" \
- ${WRKSRC}/components/Makefile
-
-post-build:
- @${SED} 's|%%DATADIR%%|${DATADIR}|' ${PKGDIR}/pkg-message > ${PKGMESSAGE}
do-install:
@${MKDIR} ${DATADIR}
@${INSTALL} -m 644 ${WRKSRC}/${FILENAME} ${DATADIR}
post-install:
+ @${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
+ @${ECHO_MSG}
.include <bsd.port.post.mk>
diff --git a/mail/moztraybiff/files/patch-components_Makefile b/mail/moztraybiff/files/patch-components_Makefile
deleted file mode 100644
index 082c0512f21c..000000000000
--- a/mail/moztraybiff/files/patch-components_Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
---- components/Makefile.orig Sat Mar 19 22:30:21 2005
-+++ components/Makefile Sat Mar 19 22:32:11 2005
-@@ -17,7 +17,10 @@
- $(shell pkg-config --libs $(GTK_PACKAGE))
-
- MOZ_INCLUDES := \
-- $(shell $(MOZILLA_CONFIG) --cflags)
-+ $(shell $(MOZILLA_CONFIG) --cflags) \
-+ $(shell for i in \
-+ `find $${X11BASE}/lib/thunderbird/include/thunderbird-%%TBVER%% -type d`; \
-+ do echo -n "-I$$i "; done)
-
- CXXFLAGS += \
- -fno-rtti \
diff --git a/mail/moztraybiff/pkg-message b/mail/moztraybiff/files/pkg-message.in
index 04150cf34f58..04150cf34f58 100644
--- a/mail/moztraybiff/pkg-message
+++ b/mail/moztraybiff/files/pkg-message.in