aboutsummaryrefslogtreecommitdiffstats
path: root/misc/pdmenu/files/patch-ad
blob: cc258cabf9bfd5d0ec187d5b890b06d96c9931dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

$FreeBSD$

--- Makefile.orig
+++ Makefile
@@ -13,7 +13,7 @@
 include makeinfo
 
 pdmenu: .dep $(OBJFILES)
-   ${CC} -o pdmenu $(OBJFILES) $(CFLAGS) $(LIBS)
+   ${CC} -o pdmenu $(OBJFILES) $(CFLAGS) $(LIBS) -lintl
 
 depend: .dep
 dep: .dep
@@ -57,8 +57,7 @@
    $(INSTALL) examples/showdir.pl $(INSTALL_PREFIX)/$(DATADIR)/pdmenu
    cd $(INSTALL_PREFIX)/$(DATADIR)/pdmenu && $(LN_S) -f showdir.pl editdir.pl
    for lang in $(LANGS); do \
-       [ ! -d $(LOCALEDIR)/$$lang/LC_MESSAGES/ ] && mkdir -p $(LOCALEDIR)/$$lang/LC_MESSAGES/; \
-       install -m 644 po/$$lang.mo $(LOCALEDIR)/$$lang/LC_MESSAGES/pdmenu.mo; \
+       install -m 644 po/$$lang.mo $(PREFIX)/share/locale/$$lang/LC_MESSAGES/pdmenu.mo; \
    done
 
 test: pdmenu