app-arch/pax: no Makefile. edo gcc, dobin/doman
This commit is contained in:
parent
88682c2c77
commit
e65b0b318c
2 changed files with 3 additions and 43 deletions
|
@ -1,40 +0,0 @@
|
|||
# 2012 Denis Knauf
|
||||
# $OpenBSD: Makefile,v 1.10 2001/05/26 00:32:20 millert Exp $
|
||||
|
||||
# To install on versions prior to BSD 4.4 the following may have to be
|
||||
# defined with CFLAGS +=
|
||||
#
|
||||
# -DLONG_OFF_T Define this if the base type of an off_t is a long (and is
|
||||
# NOT a quad). (This is often defined in the file
|
||||
# /usr/include/sys/types.h).
|
||||
# This define is important, as if you do have a quad_t
|
||||
# off_t and define LONG_OFF_T, pax will compile but will
|
||||
# NOT RUN PROPERLY.
|
||||
#
|
||||
|
||||
PROG= pax
|
||||
SRCS= ar.c buf_subs.c file_subs.c getoldopt.c pax.c tar.c \
|
||||
ar_io.c cache.c ftree.c options.c sel_subs.c tty_subs.c \
|
||||
ar_subs.c cpio.c gen_subs.c pat_rep.c tables.c
|
||||
|
||||
OBJS= $(SRCS:.c=.o)
|
||||
MAN= pax.1
|
||||
|
||||
CFLAGS= -Wall -O2 -g\
|
||||
-DNET2_STAT -D_PATH_DEFTAPE=\"/dev/rmt0\" -DDEBIAN -D_GNU_SOURCE
|
||||
|
||||
prefix=/usr
|
||||
|
||||
pax: $(OBJS)
|
||||
$(CC) $(CFLAGS) $(OBJS) -o $@ $(LIBS)
|
||||
|
||||
clean:
|
||||
$(RM) *.o
|
||||
|
||||
realclean: clean
|
||||
$(RM) $(PROG)
|
||||
|
||||
install:
|
||||
install -d $(DESTDIR)$(prefix)/bin $(DESTDIR)$(prefix)/share/man/man1
|
||||
install -s $(PROG) $(DESTDIR)$(prefix)/bin
|
||||
install $(MAN) $(DESTDIR)$(prefix)/share/man/man1
|
|
@ -19,7 +19,6 @@ WORK=${WORKBASE}/${PN}-${PV}
|
|||
|
||||
src_unpack() {
|
||||
default
|
||||
cp "${FILES}/Makefile" "${WORK}"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
|
@ -27,9 +26,10 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
emake pax
|
||||
edo gcc ${CFLAGS} ${LDFLAGS} -o pax *.c
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dobin pax
|
||||
doman pax.1
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue