Skip to content

Commit

Permalink
Update osxinfo:
Browse files Browse the repository at this point in the history
    - code cleanup
    - use pkg_install database for package count
  • Loading branch information
nbyouri committed Apr 7, 2016
1 parent ea8f6de commit 62bcacb
Show file tree
Hide file tree
Showing 2 changed files with 267 additions and 252 deletions.
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
CC ?= clang
PREFIX ?= /usr/pkg
PREFIX ?= /opt/pkg

VARBASE ?= /var
PKGIN_DB = ${VARBASE}/db/pkgin/pkgin.db
VARBASE ?= ${PREFIX}/var
DBDIR ?= ${VARBASE}/db/pkg

CFLAGS = -I/usr/include -DDBDIR=\"${DBDIR}\" -g -Wall
LDFLAGS = -L/usr/lib -framework IOKit -framework Foundation

CFLAGS = -I/usr/include -DPKGIN_DB=\"${PKGIN_DB}\"
LDFLAGS = -L/usr/lib -lsqlite3 -framework IOKit -framework Foundation
all:
${CC} ${CFLAGS} info.c ${LDFLAGS} -o osxinfo
install:
Expand Down
Loading

0 comments on commit 62bcacb

Please sign in to comment.