@@ -11,38 +11,47 @@ all : $(APPS) direwolf.desktop direwolf.conf
11
11
@echo " sudo make install"
12
12
@echo " "
13
13
14
+ #
15
+ # Freebsd usually looks for non-base install libs and include in LOCALBASE
16
+ # which is usually /usr/local
17
+ #
18
+ LOCALBASE= /usr/local
19
+ CFLAGS += -I${LOCALBASE}/include
14
20
CFLAGS += -pthread -Igeotranz
21
+ LDFLAGS := -lm -lpthread -L${LOCALBASE}/lib
15
22
16
- LDFLAGS := -lm -lpthread
23
+ # FreeBSD installs into a staging dir before generating the package
24
+ # Many other systems do similiar so account for this for now
25
+ #STAGEDIR :=
26
+ # PREFIX is the local install directory relative to / for FreeBSD
27
+ # Usually the same as LOCALBASE
28
+ #
29
+ PREFIX := /usr/local
17
30
18
- # This needs work FreeBSD does support neon
31
+ INSTALLDIR := ${STAGEDIR}${PREFIX}
32
+ SHAREDIR := ${INSTALLDIR}/share
33
+
19
34
#CFLAGS += -mfpu=neon
20
35
21
36
#FreeBSD prefers OSS
22
37
#CFLAGS += -DUSE_ALSA
23
38
#LDFLAGS += -lasound
24
39
25
- # FreeBSD can support gpsd just not for initial port ;)
26
- #enable_gpsd := $(wildcard /usr/local/include/gps.h)
27
- #ifneq ($(enable_gpsd),)
28
- #CFLAGS += -DENABLE_GPSD
29
- #LDFLAGS += -lgps
30
- #endif
31
-
40
+ enable_gpsd := $(wildcard ${LOCALBASE}/include/gps.h)
41
+ ifneq ($(enable_gpsd),)
42
+ CFLAGS += -DENABLE_GPSD
43
+ LDFLAGS += -lgps
44
+ endif
32
45
33
46
# Uncomment following lines to enable hamlib support.
34
- # FreeBSD also support hamlib not tested yet
35
- #CFLAGS += -DUSE_HAMLIB
36
- #LDFLAGS += -lhamlib
37
-
47
+ CFLAGS += -DUSE_HAMLIB
48
+ LDFLAGS += -lhamlib
38
49
39
50
# Name of current directory.
40
51
# Used to generate zip file name for distribution.
41
52
42
53
z := $(notdir ${CURDIR})
43
54
44
-
45
-
46
55
# -------------------------------- Main application -----------------------------------------
47
56
48
57
@@ -194,14 +203,6 @@ direwolf.conf : generic.conf
194
203
# This is a step in the right direction but not sufficient to use /usr instead.
195
204
# Eventually I'd like to have targets here to build the .DEB and .RPM packages.
196
205
197
- # FreeBSD installs into a staging dir before generating the package
198
- # Many other systems do similiar so account for this for now
199
- #STAGEDIR :=
200
- # PREFIX is the local install directory relative to / for FreeBSD
201
- PREFIX := "/usr/local"
202
-
203
- INSTALLDIR := ${STAGEDIR}${PREFIX}
204
- SHAREDIR := ${INSTALLDIR}/share
205
206
206
207
# Command to "install" to system directories. Use "ginstall" for Mac.
207
208
0 commit comments