summaryrefslogtreecommitdiff
path: root/editors/notecase
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-01-29 19:54:17 +0000
committerjoerg <joerg@pkgsrc.org>2010-01-29 19:54:17 +0000
commit11eb4295a218106b0178f47df6e6bd644ca0214c (patch)
tree8cec06901d3233b66f39a31fbeba75d6e8a2c62c /editors/notecase
parent3a2b3ebb27b03a5894d8899d3056933a0cb86975 (diff)
downloadpkgsrc-11eb4295a218106b0178f47df6e6bd644ca0214c.tar.gz
DESTDIR support
Diffstat (limited to 'editors/notecase')
-rw-r--r--editors/notecase/Makefile4
-rw-r--r--editors/notecase/patches/patch-ad17
2 files changed, 17 insertions, 4 deletions
diff --git a/editors/notecase/Makefile b/editors/notecase/Makefile
index b5b411acc47..935bc9c809d 100644
--- a/editors/notecase/Makefile
+++ b/editors/notecase/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2009/08/26 19:57:25 sno Exp $
+# $NetBSD: Makefile,v 1.11 2010/01/29 19:54:39 joerg Exp $
#
DISTNAME= notecase-1.8.8_src
@@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://notecase.sourceforge.net/
COMMENT= Hierarchical note manager
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/notecase-1.8.8
USE_LANGUAGES= c c++
USE_TOOLS+= gmake msgfmt pkg-config gsed
diff --git a/editors/notecase/patches/patch-ad b/editors/notecase/patches/patch-ad
index e774305abed..55f3237358f 100644
--- a/editors/notecase/patches/patch-ad
+++ b/editors/notecase/patches/patch-ad
@@ -1,6 +1,6 @@
-$NetBSD: patch-ad,v 1.5 2008/05/15 19:18:07 drochner Exp $
+$NetBSD: patch-ad,v 1.6 2010/01/29 19:54:39 joerg Exp $
---- Makefile.orig 2008-04-24 12:10:36.000000000 +0200
+--- Makefile.orig 2008-04-24 10:10:36.000000000 +0000
+++ Makefile
@@ -10,7 +10,7 @@
VERSION=1.8.8
@@ -37,7 +37,18 @@ $NetBSD: patch-ad,v 1.5 2008/05/15 19:18:07 drochner Exp $
$(OBJ)/ProgressDlg.o $(OBJ)/DocActionPix.o $(OBJ)/DocActionFinish.o $(OBJ)/DocActionFmt.o $(OBJ)/FmtInfo.o \
$(OBJ)/FileAttachmentDlg.o $(OBJ)/DocActionAtt.o $(OBJ)/PixPropertiesDlg.o $(OBJ)/DocActionFinishDel.o \
$(OBJ)/ShortcutsList.o $(OBJ)/ShortcutsListDlg.o $(OBJ)/DateTimeDlg.o $(OBJ)/AboutDlg.o $(OBJ)/EditDlg.o \
-@@ -630,7 +629,7 @@ updatesrc:
+@@ -526,9 +525,7 @@ poinstall:
+ rm -f po/messages.mo; \
+ msgfmt $$i -o po/messages.mo; \
+ echo "Installing: $(DESTDIR)$(datadir)/locale/$$loc/LC_MESSAGES/notecase.mo";\
+- if [ "$(OSX_BUILD)" = "1" ]; then \
+- mkdir -p $(DESTDIR)$(datadir)/locale/$$loc/LC_MESSAGES/; \
+- fi; \
++ mkdir -p $(DESTDIR)$(datadir)/locale/$$loc/LC_MESSAGES/; \
+ $(INSTALL) -m 644 po/messages.mo "$(DESTDIR)$(datadir)/locale/$$loc/LC_MESSAGES/notecase.mo"; \
+ done; \
+ rm -f po/messages.mo;
+@@ -630,7 +627,7 @@ updatesrc:
$(Q)$(SED) 's/^Version:.*/Version: $(VERSION)/' ./docs/notecase.spec
$(Q)$(SED) 's/^Source:.*/Source: $(archive)_src.tar.gz/' ./docs/notecase.spec
$(Q)$(SED) 's/\#define APP_VER_STR .*/\#define APP_VER_STR "$(VERSION)"/' ./src/config.h