remove -lgcrypt from netbsd Makefile
[xombrero.git] / netbsd / Makefile
blob2adee6cdc420ac022b4eee10d36b34894e4c2615
1 PREFIX?=/usr/local
2 BINDIR=${PREFIX}/bin
4 PROG=xombrero
5 MAN=xombrero.1
7 DEBUG= -g
9 SRCS= cookie.c inspector.c marco.c about.c whitelist.c settings.c inputfocus.c
10 SRCS+= history.c completion.c tldlist.c externaleditor.c unix.c xombrero.c
11 SRCS+= netbsd.c
12 .PATH: ${.CURDIR}/..
14 CFLAGS+= -O2 -Wall -Wno-format-extra-args -Wunused
15 CFLAGS+= -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-sign-compare ${DEBUG}
16 CFLAGS+= -DGTK_DISABLE_SINGLE_INCLUDES -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGSEAL_ENABLE
17 CFLAGS+= -DGDK_DISABLE_DEPRECATION_WARNINGS -DGLIB_DISABLE_DEPRECATION_WARNINGS
18 CFLAGS+= -I. -I..
19 LDADD= -lutil
20 GTK_VERSION ?= gtk3
21 .if ${GTK_VERSION} == "gtk2"
22 LIBS+= gtk+-2.0
23 LIBS+= webkit-1.0
24 .else
25 LIBS+= gtk+-3.0
26 LIBS+= webkitgtk-3.0
27 .endif
28 LIBS+= libsoup-2.4
29 LIBS+= gnutls
30 GTK_CFLAGS!= pkg-config --cflags $(LIBS)
31 GTK_LDFLAGS!= pkg-config --libs $(LIBS)
32 CFLAGS+= $(GTK_CFLAGS)
33 LDFLAGS+= $(GTK_LDFLAGS)
34 BUILDVERSION != sh "${.CURDIR}/../buildver.sh"
35 .if !${BUILDVERSION} == ""
36 CPPFLAGS+= -DXOMBRERO_BUILDSTR=\"$(BUILDVERSION)\"
37 .endif
39 MANDIR= ${PREFIX}/man/
41 CLEANFILES += ${.CURDIR}/javascript.h javascript.h tooltip.h xombrero.cat1 xombrero.core xombrero.html1
43 JSFILES += ../hinting.js
44 JSFILES += ../input-focus.js
45 JSFILES += ../autoscroll.js
47 .for _js in ${JSFILES}
48 JSCURDIR += ${.CURDIR}/${_js}
49 .endfor
51 .NOPATH: javascript.h tooltip.h
52 javascript.h: ${JSFILES} ../js-merge-helper.pl
53 perl ${.CURDIR}/../js-merge-helper.pl \
54 ${JSCURDIR} > javascript.h
56 tooltip.h: ${MAN} ../ascii2txt.pl ../txt2tooltip.pl
57 mandoc -Tascii ${.CURDIR}/../${MAN} | \
58 perl ${.CURDIR}/../ascii2txt.pl | \
59 perl ${.CURDIR}/../txt2tooltip.pl > tooltip.h
61 beforeinstall:
62 install -m 755 -d ${PREFIX}/bin
63 install -m 755 -d ${PREFIX}/man/man1/
64 install -m 755 -d ${PREFIX}/man/html1/
65 install -m 755 -d ${PREFIX}/share/xombrero
66 install -m 644 $(.CURDIR)/../xombrero.css ${PREFIX}/share/xombrero
67 install -m 644 ${.CURDIR}/../xombreroicon.png ${PREFIX}/share/xombrero
68 install -m 644 ${.CURDIR}/../xombreroicon16.png ${PREFIX}/share/xombrero
69 install -m 644 ${.CURDIR}/../xombreroicon32.png ${PREFIX}/share/xombrero
70 install -m 644 ${.CURDIR}/../xombreroicon48.png ${PREFIX}/share/xombrero
71 install -m 644 ${.CURDIR}/../xombreroicon64.png ${PREFIX}/share/xombrero
72 install -m 644 ${.CURDIR}/../xombreroicon128.png ${PREFIX}/share/xombrero
73 install -m 644 ${.CURDIR}/../tld-rules ${PREFIX}/share/xombrero
74 install -m 644 ${.CURDIR}/../style.css ${PREFIX}/share/xombrero
75 install -m 644 ${.CURDIR}/../hsts-preload ${PREFIX}/share/xombrero
77 ${PROG} ${OBJS} beforedepend: javascript.h tooltip.h
79 .include <bsd.prog.mk>