Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Feb 2006 17:08:54 +0530
From:      "Rajkumar S" <rajkumars@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   Porting question
Message-ID:  <64de5c8b0602200338sa097642sd9e3d4568162069d@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

I am trying to create a package for havp. I have a working patch for
havp, and created a Makefile and so on. When I execute make:

root@beastie:~/package/havp# make clean
=3D=3D=3D>  Cleaning for havp-0.77_1
root@beastie:~/package/havp# make
=3D=3D=3D>  Vulnerability check disabled, database not found
=3D=3D=3D>  Extracting for havp-0.77_1
=3D> No checksum file (/root/package/havp/distinfo).
=3D=3D=3D>  Patching for havp-0.77_1
=3D=3D=3D>  Applying FreeBSD patches for havp-0.77_1
=3D=3D=3D>  Configuring for havp-0.77_1
checking for C++ compiler default output file name... a.out
<snip>
=3D=3D=3D>  Building for havp-0.77_1
cd havp && make
c++ -O2 -fno-strict-aliasing -pipe -c filehandler.cpp
c++ -O2 -fno-strict-aliasing -pipe -c helper.cpp

But here not all arguments of c++ is present.

root@beastie:~/package/havp# cd work/havp-0.77/
root@beastie:~/package/havp/work/havp-0.77# make
cd havp && make
c++ -O2 -fno-strict-aliasing -pipe -O2 -I/usr/local/include -O2
-fno-strict-aliasing -pipe -c connectiontobrowser.cpp
c++ -O2 -fno-strict-aliasing -pipe -O2 -I/usr/local/include -O2 -fno-stri

As you can see -I/usr/local/include is missing when building package
but it's present when I make manually. Can some one point me to the
right direction here? The make files are attached below.

raj


root@beastie:~/package/havp/work/havp-0.77# cat Makefile
all:    havp
        cd havp && $(MAKE)

clean:
        cd havp && $(MAKE) clean

.PHONY: havp/havp
install: havp/havp
        cd havp && $(MAKE) install

and

root@beastie:~/package/havp/work/havp-0.77# cat havp/Makefile
CFLAGS =3D -O2 -fno-strict-aliasing -pipe  -O2 -I/usr/local/include -O2
-fno-strict-aliasing -pipe
prefix=3D/usr/local
exec_prefix=3D${prefix}
sbindir=3D${exec_prefix}/sbin
etcdir=3D${prefix}/etc

lan_fils :=3D$(wildcard ../etc/havp/templates/[a-z]*/*.html)

OBJECTS =3D filehandler.o helper.o logfile.o scannerfilehandler.o
connectiontobrowser.o \
          genericscanner.o httphandler.o params.o sockethandler.o
connectiontoserver.o havp.o \
          proxyhandler.o whitelist.o clamlibscanner.o
all:    havp

havp: $(OBJECTS)
        $(CXX) -DHAVE_CONFIG_H -I. -I. -I.. $(CFLAGS) -o havp
$(OBJECTS) -L/usr/local/lib -lz -lbz2 -lgmp -pthread -lclamav

install: all
        install -d $(sbindir)
        install -m 755 havp $(sbindir)/havp
        install -d /var/log/havp/
        install -d /var/tmp/havp/
        install -d /var/run/havp/
        chmod a+rw /var/run/havp/
        install -d /etc/init.d/
        install -m 755 ../etc/init.d/havp /etc/init.d/
        install -m 644 -D ../etc/havp/havp.config $(etcdir)/havp/havp.confi=
g
        install -m 644 -D ../etc/havp/whitelist $(etcdir)/havp/whitelist
        install -m 644 -D ../etc/havp/blacklist $(etcdir)/havp/blacklist
        @list=3D'${lan_fils}'; for fil in $$list;do \
        install -m 755 -D $$fil $(etcdir)/$${fil#../etc*}; \
        done



%.o:    %.cpp %.h
        $(CXX) -DHAVE_CONFIG_H -I. -I. -I.. $(CFLAGS) -c $< -o $@

clean:
        -rm -f havp $(OBJECTS)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?64de5c8b0602200338sa097642sd9e3d4568162069d>